Академический Документы
Профессиональный Документы
Культура Документы
Privacy Policy
Contact
About Us
Home
Java
JavaEE
Frameworks
Spring
Web Services
Web
Misc
Adds
Tutorials On Web Design
Home
>>
AngularJS
English Tutoring
AngularJS - Expressions
Online Algebra Tutoring
April 10, 2016
by
Mukesh Kumar
at
3:47 pm
Homework Tutor
AngularJS Tutorial
Student Tutors
AngularJS Overview
Online Tutoring Services
AngularJS Components
AngularJS Repeaters (ng-repeat directive)
AngularJS Filters
Popular Posts
Integrating JSP,Servlet and Hibernate in
an MVC application
Maven
Jboss Tools Installation in Eclipse
Jboss Installation in Eclipse
Database Application Using JSF
Java Web Application With Maven
Spring HelloWorld Example Using Eclipse
And Maven
Example
HTML
Result
EDIT ON
Mukesh Kumar
<html ><head>
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script></head><body
>
<h1>AngularJS Expression Example:</h1><div ng-app>
10 + 2 = {{10 + 2}} <br />
2 - 2 = {{2 - 2}} <br />
10 * 2 = {{10 * 2}} <br />
2 / 2 = {{2 / 2}}
</div>
</body></html>
HTML
EDIT ON
Result
<html ><head>
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script></head><body
>
<h1>AngularJS Expression Example:</h1><div ng-app>
{{"Hello World"}}<br />
{{100}}<br />
{{true}}<br />
{{95/10}}
</div></body></html>
AngularJS expression can contain variables declared via ng-init directive. Consider the example
given below.
HTML
EDIT ON
Result
<html ><head>
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script></head><body
>
<h1>AngularJS Expression Example:</h1><div ng-app ng-init="message='Hello World!'; amount=
5000;rateOfInterest = 12.5; duration=10; myArr = [100, 200]; person = { firstName:'Mukesh',
lastName :'Kumar'}">
{{ (amount * rateOfInterest * duration)/100 }}<br />
{{myArr[1]}} <br />
{{person.firstName + " " + person.lastName}}
</div></body></html>
Related Articles
1. Maven Overview
Index
0
Comments
javawebtutor
Login
Recommend
Share
Sort by
Best
ALSO ON JAVAWEBTUTOR
AngularJS - Controllers
1 comment
3 months ago
1 comment
6 months ago
1 comment
2 years ago
1 comment
7 days ago
Top of Page
About Us
Privacy Policy
Contact Us
javawebtutor.com 2013-2016
DISCLAIMER
ABOUT US
FREE
EBOOKS
javawebtutor.com is a site
dedicated to bringing you the
coolest java and related web
development tutorials and
resources.
ABOUT US
LEARN MORE
Download
ebooks.
DOWNLOAD IT