Tag Archives: ng-model example

Difference between expression, ng-bind and ng-model

ng-bind and {{}} are basically the same. However, before your application fully loads, sometimes {{}} are visible. ng-bind usually looks a little nicer before everything finishes loading. ng-bind If you have $scope.textFromComponent = “Superman” in your controller. <span ng-bind=”textFromComponent”></span> binds this value within this span element. {{ }} The same behaviour can be achieved using {{}}. These set of… Read More »