In this blog, let's start learning Angular JS basics
In Angular JS, it extends with HTML ng-directives as below
ng-app: this directive defines an Angular JS application
ng-model: this directive binds the value of html controls to application data.
ng-bind: this directive binds application data to the HTML view.
<div data-ng-app="" data-ng-init="firstName='John'">
<p>The name is <span data-ng-bind="firstName"></span></p>
We have added a angular js script file as shown above included in script
We defined angular application with a keyword ng-app
We also initialized application with first name =JOHN
That ng-init is is now bing to html control span with data-ng-bind keyword as shown figure.
The name is John