The ng- thing

AngularJS is a JavaScript Framework which extends the HTML with new attributes. Use ng- or data-ng- to make the angular thing work. Have fun..!!!

ng-app : Defines Angular.js application

ng-model : Binds HTML control values to the application data

ng-bind : Binds application data to HTML view

ng-init : Initializes AngularJS application variables

ng-controller : Defines a controller. Attach controller function to HTML page

ng-repeat : For repeating HTML elements, arrays and array of objects (i.e.; works like loop)

ng-show : To show the HTML elements when set to ‘true’

ng-hide : To hide HTML elements when set to ‘true’

ng-click : Triggers Click event

ng-src : Use instead ‘src’ for image tag in HTML

ng-submit : To accept submissions in the controller by using a function

ng-valid : Valid value is entered

ng-invalid : Invalid values are entered

ng-dirty : Some value has been entered. User interacted with the field

ng-pristine : No value entered. User didn’t interact with the field

ng-include : To include a HTML file in another HTML

Previous
Previous

AngularJS Filters

Next
Next

It’s fun solving