AngularJS / AngularJS Directives

AngularJS Directives are HTML attributes with an ng prefix.

Directive Details
ng-app Defines AngularJS application
ng-controller Defines the controller which control AngularJS applications.
ng-model Binds input field value to the application variable name.
ng-bind Binds application data to the HTML view.
ng-init Used to initializes AngularJS application variables.
ng-repeat Repeats an HTML element


ng-app Directive defines AngularJS application.

Program Name

Write a AngularJS program for ng-app Directive.
Theory
ng-app Directive defines AngularJS application.
Program Code


Input
wisdom materials
Output
ng-app Directive defines  AngularJS application.


ng-init Directive is Used to initializes AngularJS application variables.
Program Name

Write a AngularJS program for ng-init Directive.
Theory
ng-init Used to initializes AngularJS application variables.
Program Code


Input
wisdom materials
Output
ng-app Directive defines AngularJS application.


AngularJS Expressions

AngularJS Expressions written inside {{ expression }} / : ng-bind="expression"
Example {{ 2 + 3 }}


AngularJS Expressions are used for calculations

Program Name

Write a AngularJS program for AngularJS Expressions.
Theory
AngularJS Expressions are used for calculations.
Program Code


Input
wisdom materials
Output
AngularJS expressions
2+3=5


Example 2

Program Name

Write a AngularJS program for AngularJS Expressions.
Theory
AngularJS Expressions are used for calculations.
Program Code


Input
wisdom materials
Output
AngularJS Expressions are used for calculations. 


ng-model Directive binds input field value to the application variable name.

Addition of Two Numbers Program in AngularJS

Program Name

Write a Addition of Two Numbers Program in AngularJS.
Theory
Addition of Two Numbers Program in AngularJS
Program Code


Input
wisdom materials
Output
AngularJS Expressions are used for calculations. 


Addition of Two Numbers Program in AngularJS

Program Name

Write a Addition of Two Numbers Program in AngularJS.
Theory
Addition of Two Numbers Program in AngularJS
Program Code


Input
wisdom materials
Output
AngularJS Expressions are used for calculations. 
Addition of Two Numbers Program in AngularJS

Program Name

Write a Addition of Two Numbers Program in AngularJS.
Theory
Addition of Two Numbers Program in AngularJS
Program Code


Input
wisdom materials
Output
AngularJS Expressions are used for calculations. 


Example color

Program Name

Write a color Program in AngularJS.
Theory
color Program in AngularJS
Program Code


Input
wisdom materials
Output
AngularJS Expressions are used for calculations. 


Addition of Two Numbers Program in AngularJS =Data Binding

Program Name

Write a Addition of Two Numbers Program in AngularJS.
Theory
color Program in AngularJS
Program Code


Input
n1=4 and n2=5
Output
sum=n1*n2= 20


Addition of texts Program in AngularJS

Program Name

Write a Addition of texts Program in AngularJS
Theory
Addition of texts Program in AngularJS
Program Code


Input
wisdom materials
Output
combined text = wisdom materials


Home     Back