Beginner to angular.
I have a list, list1 = ["item1"].
I wanted to bind the whole list to a label.
In other words:
<label> {{list1}} </label>. This will output ["item1"].
It looked tacky, so I tried using ng-bind. <label ng-bind = "list1"> </label>. This failed to show me ANY output (blank label). Why did this not work?
Second try, I did this <label ng-bind = "list1[0]">. This worked!! Why?
Now, I wanted to try ng-model on that. <label ng-model = "list1"> </label>. Did not work. Then I tried, <label ng-model = "list1[0]">. No luck...ugh! I cant get my head around this scenario at all.
I tried finding the difference between ng-bind and ng-model. Found this here. If that answer is valid, why <label ng-bind = "list1"> </label> DOES NOT EQUAL <label> {{list1}} </label>?