Search results
This tutorial is specially designed to help you learn AngularJS as quickly and efficiently as possible. First, you will learn the basics of AngularJS: directives, expressions, filters, modules, and controllers.
AngularJS Tables. Displaying a table (simple) Displaying a table with CSS Displaying a table with an orderBy filter Displaying a table with an uppercase filter Displaying a table with an index Displaying a table with even and odd.
Adding Items: In the HTML, add a text field, and bind it to the application with the ng-model directive. In the controller, make a function named addItem, and use the value of the addMe input field to add an item to the products array.
AngularJS is a JavaScript framework written in JavaScript. AngularJS is distributed as a JavaScript file, and can be added to a web page with a script tag:
AngularJS has a set of built-in directives which you can use to add functionality to your application. For a full reference, visit our AngularJS directive reference.
The ng-app directive defines the AngularJS application. The ng-controller directive defines the application controller. The ng-model directive binds two input elements to the user object in the model. The formCtrl controller sets initial values to the master object, and defines the reset () method.
If you want to navigate to different pages in your application, but you also want the application to be a SPA (Single Page Application), with no page reloading, you can use the ngRoute module. The ngRoute module routes your application to different pages without reloading the entire application.
AngularJS uses double braces {{ }} as place holders for data. AngularJS directives are HTML attributes with the prefix ng-. The ng-app directive initializes an AngularJS application. The ng-init directive initializes application data.
AngularJS lets you extend HTML with new attributes called Directives. AngularJS has a set of built-in directives which offers functionality to your applications. AngularJS also lets you define your own directives.
In AngularJS, a service is a function, or object, that is available for, and limited to, your AngularJS application. AngularJS has about 30 built-in services. One of them is the $location service. The $location service has methods which return information about the location of the current web page: