I have a text box and two buttons on a page. The textbox recieves data from the database. If the textbox has a value I want to show Turn Off and hide the other. If the textbox doesn't have a value I want show Turn On and hide the other.
Because I am binding the textbox to sessionStorage.clientId, null gets displayed in the textbox if there is no data for the corresponding field in database. And also always Turn On button only showsup. what am i doing wrong.
Here is the Plunker