What’s the difference between ng-model and ng-bind

ng-bind has one-way data binding ($scope –> view). It has a shortcut {{ val }}
which displays the scope value $scope.val inserted into html where val is a variable name.

ng-model is intended to be put inside of form elements and has two-way data binding ($scope –> view and view –> $scope) e.g. <input ng-model="val"/>.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)