angularjs - ngShow on value selected? -


I would like to display only a single divisive number (i.e. special ) when a specific value is selected. I have tried the following but it does not work, how can I fix this?

& lt; Select ng-change "timeline.selected note ()" ng-model = "timeline.Opt selected note as" ng-option = "option.not time contact.opt opt ​​in" class = "btn btn- Default dropdown-toggle "type =" button "ID =" dropdown menu 1 "Data-Toggle =" dropdown "& gt; & Lt; Option value = "" & gt; - Choose note - & lt; / Option & gt; & Lt; / Select & gt; & Lt; Div class = "select-element animate-hide" ng-show = "timeline.edited note == 'special'" & gt;

Because ngOptions are used as the value of opt Using (due to the as an option ... ), timeline.edicated note is the whole note object object assuming that you have 'special' Is equal, this is notecard , it should work ...

  
div class = "select-element animate-" ng-show = "timeline Hide notes. Note content == 'Special' "& gt; ... & lt; / Div & gt;

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -