Angular Top 10 Example for Beginners
Today, We want to share with you Angular Top 10 Example for Beginners.
In this post we will show you Angular Top 10 Example for Beginners, hear for Angular Top 10 Example for Beginners we will give you demo and example for implement.
In this post, we will learn about Angular Top 10 Example for Beginners with an example.
Example : 1 Simple Hello-world
[php]
http://infinityknow.com/libs/angular.min.js
First Name :
Hello {{fname}}
[/php]
Example : 2 AngularJS Expressions Example
[php]
http://infinityknow.com/libs/angular.min.js
My Simple First(Addition) Expression: {{ 5 + 5 }}
My Simple Second(Color init mode) Expression:
My Simple Third (Total in price) Expression: {{ qty * cprice }}
[/php]
Example : 3 AngularJS Arrays Example
[php]
http://infinityknow.com/libs/angular.min.js
The First result display {{ points[0] }}
The Second result display {{ points[1] }}
The third result display {{ points[2] }}
The First result display
The Second result display
The third result display
[/php]
Example : 4 Simple AngularJS Application
[php]
http://infinityknow.com/libs/angular.min.js
Simple AngularJS Application
Enter Two Numbers to Multiply:
x
= {{number1 * number2}}
[/php]
Example : 5 The ng-app Directive Example
[php]
http://infinityknow.com/libs/angular.min.js
The ng-app Directive Example
[/php]
Example : 6 AngularJS Expression(ADD_SUB_MUL_DIV):
[php]
http://infinityknow.com/libs/angular.min.js
AngularJS Expression(ADD_SUB_MUL_DIV)
5 – 4 = {{5 – 4}}
5 * 4 = {{5 * 4}}
5 / 4 = {{5 / 4}}
[/php]
Example : 7 AngularJS Controller: Example
[php]
http://infinityknow.com/libs/angular.min.js
AngularJS Controller: Example
var myngApp = angular.module(‘infinityknowApp’, []);
myngApp.controller(‘simpleCtrl’, function ($scope) {
$scope.ctrlmessage = “Wel-come to Hello World! Example with controller”;
});
[/php]
Example : 8 Scope in AngularJS: Example
[php]
http://infinityknow.com/libs/angular.min.js
AngularJS Controller: Example
{{ctrlmessage}}
var myngApp = angular.module(‘infinityknowApp’, []);
myngApp.controller(‘simpleCtrl’, function ($scope) {
$scope.ctrlmessage = “Wel-come to Hello World! Example with controller”;
});
[/php]
Example : 9 ng-repeat directive in AngularJS Example
[php]
http://infinityknow.com/libs/angular.min.js
ng-repeat directive in AngularJS Example
- {{name}}
[/php]
Example : 10 ng-if, ng-readonly, ng-disabled Example
[php]
http://infinityknow.com/libs/angular.min.js
ng-if, ng-readonly, ng-disabled Example
Please Click Me Here:
[/php]