Hi Guest 1 HomePage 1 Jobs 1 WalkIn 1Articles  

 :) Latest Topic
Numbers And Strings
Objects And Array
AngularJS VS JavaScript
Controllers in Files
Load the Library
AngularJS Directives
Repeating Directive
AngularJS Facts
Create Directives
Restrict Directive
Custom Filter
AngularJS Services
AngularJS Service 2
AngularJS Tables
Select Option
Select Option 2
AngularJS Forms
Form Validation
Validation CSS
Validation Example
AngularJS API
AngularJS $http
AngularJS Database
AngularJS HTML DOM
AngularJS Events
Custom Validation
AngularJS Tutorial
AngularJS Introduction
Angular init Directive
AngularJS Expressions 1
AngularJS Applications
AngularJS Expressions 2
Angular CSS Properties
AngularJS JSON
AngularJS Modules
Controller Basic
Add a Directive
Model Directive
Validate Inputs
CSS Classes
Data Binding
AngularJS Controller
AngularJS Scope
Root of Scope
AngularJS Filters
 


  

 
AngularJS Expressions 2
Question Posted on 06 Apr 2020

Home >> Tutorial >> AngularJS >> AngularJS Expressions 2


AngularJS Expressions 2
As from previoud chapter we knows that with the help of AngularJS we will bind data to HTML by using Expressions. There are below some of the most importants fact or we can say most important features are given below.

First point is that AngularJS expression can be written in between the double braces if we not use ng-bind directives. Syntax is given below
Syntax
{{ expression }}

Second point is that if we use ng-bind directive then we need to use below syntax
Syntax
ng-bind="expression"

Third point is that result return by AngularJS expression is on same location where it is define.

Fourth point for AngularJS expression is that it is that it will contain Literals, operators and variable as same as we use for JavaScript. And there are 2 examples are given below.
Syntax
Example1:- {{ 5+3 }}
Example2:- {{ FirstName +" " +LastName }}


AngularJS Expression
One point in above example is that we have use ng-app directive as blank but if we will remove the ng-app directive then it will not resolve the expression and display this without solving this



AngularJS Without ng-app





Other Important Questions
Numbers And Strings
Objects And Array
AngularJS VS JavaScript
Controllers in Files
Load the Library







 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |