SlideShare a Scribd company logo
www.edureka.co/angular-js
View AngularJS course details at www.edureka.co/angular-js
For Queries during the session and class recording:
Post on Twitter @edurekaIN: #askEdureka
Post on Facebook /edurekaIN
For more details please contact us:
US : 1800 275 9730 (toll free)
INDIA : +91 88808 62004
Email us : sales@edureka.co
Live Demo : AngularJS Trending Features
Slide 2 www.edureka.co/angular-jsSlide 2
Objectives
At the end of this module, you will be able to understand:
Controllers
Two Way Data Binding
Custom Directives and Filters
Unit Testing in AngularJS
AngularJS with Node.js
Slide 3 www.edureka.co/angular-jsSlide 3
Controllers in AngularJS define the workflow presentation logic
A JavaScript object
Created by a standard JavaScript object constructor
Attached to the view with ng-controller
Controllers can be defined in the application as shown
<div ng-controller=“MyController">
<body ng-controller=“MyController">
Controllers
Defining Controller
Using Controller in application
var myApp = angular.module('myApp',[]);
myApp.controller(‘MyController'.......
Slide 4 www.edureka.co/angular-jsSlide 4
Injected as an argument to the controller function
Holds the model data required by the view
Binds data to the view using AngularJS two way data binding
Represented by $scope in the controller function and links the controller to the view
Figure shown is representation of scope
app.controller(‘MyController', ['$scope',
function($scope) {
…………………..
]};
}]);
Scopes
Slide 5 www.edureka.co/angular-jsSlide 5
MODEL
AngularJS is a model driven application
A Model encapsulates the application data
Any change in the state, provides appropriate notifications to the controller and views
On notification views updates the output display of the application
Updating of view happens automatically with data bindings
TEMPLATE
Represents the model in the view and user interactions with application
Model and Template
Slide 6 www.edureka.co/angular-jsSlide 6Slide 6Slide 6
Putting Everything Together
How to bring relation between Model,
Controller and Templates in the
application?
Slide 7 www.edureka.co/angular-jsSlide 7Slide 7Slide 7
app.controller('ProductsController', ['$scope', function($scope) {
$scope.product = {
id: 1,
name: 'Smart Phones‘,
type: ‘Mobile‘,
stores: [
{ id: 1, name: 'Samsung Galaxy', quantity: 5},
{ id: 2, name: 'Nokia', quantity: 3},
{ id: 3, name: 'HTC', quantity: 6}
]
};
}]);
Controller Scope Injection
Model
Controller Structure
Slide 8 www.edureka.co/angular-jsSlide 8Slide 8Slide 8
<div ng-controller="ProductController">
Id: <span ng-bind="product.id"></span>
<br/>
Name:<input type="text" ng-model="product.name" />
<br/>
Category: <input type="text" ng-model="product.type" />
</div>
Controller
AngularJS
Binding
Model
Binds form
control to
property
Model
Attribute
Two Way Data Binding
Slide 9 www.edureka.co/angular-js
DEMO
Controllers
Slide 10 www.edureka.co/angular-js
DEMO
Two Way Data Binding
Slide 11 www.edureka.co/angular-jsSlide 11Slide 11Slide 11
Why Custom Directives?
If AngularJS comes up with wide rich
variety of directives, why it is
required to create custom directive?
Slide 12 www.edureka.co/angular-jsSlide 12
Need of Custom Directives
AngularJS comes with a lot of built-in directives which can successfully manipulate the DOM elements and
perform data binding much more...
But at certain times like converting collection into grid and display in view breaks separation of concerns, so it
is necessary to create directives as an element or attribute etc. This module will focus on the guidelines of
creating the custom directives
Slide 13 www.edureka.co/angular-jsSlide 13
Custom Directive Usage
For a module “MyAppModule” a directive with restrict option will be done in the following way
angular.module(MyModule', [])
.directive(‘myDirective', function () {
return {
restrict: 'A',
link: function (scope, elem, attrs) {
}
}
Module Definition
Directive
Definition
Restrict
Option
Slide 14 www.edureka.co/angular-js
DEMO
Creating Custom Directive
Slide 15 www.edureka.co/angular-jsSlide 15Slide 15Slide 15
Why Custom Filters
If AngularJS comes up with wide rich
variety of filters, why it is required to
create custom filters?
Slide 16 www.edureka.co/angular-jsSlide 16
Need of Custom Filters
AngularJS comes with a lot of in-built filters which helps to build applications faster and easier. But there are
some scenarios like in case of Angular currency filter, we need the denominations to be displayed differently
than the built-in functionality. In scenarios like these we need to develop custom filters
Slide 17 www.edureka.co/angular-jsSlide 17
Custom Filter Structure
 AngularJS comes with elegant way of creating Filters
 Integrating filters to the current application is lot easier by using the below syntax
app.filter(‘filterName', function() {
return function(input, option1, option2) {
var out;
//function code
return out;
});
Slide 18 www.edureka.co/angular-js
DEMO
CUSTOM FILTERS
Slide 19 www.edureka.co/angular-jsSlide 19
Unit Testing
Slide 20 www.edureka.co/angular-jsSlide 20
Manual Testing
Traditionally developers manually test their application
Manual testing is less efficient
Very difficult to track the test result
Very difficult to test all the pieces of code
Very difficult to test the integration of two ore more functions
Differs from one developer to another developer
Slide 21 www.edureka.co/angular-jsSlide 21
Unit Testing With Angular.js
Add Test
Watch
Test Fail
Watch
Code
Run Test
Refactor
Slide 22 www.edureka.co/angular-js
DEMO
Unit Test
Slide 23 www.edureka.co/angular-jsSlide 23
Node.js
Node.js is an open source JavaScript runtime environment to develop server side applications
Node.js runs on V8 JavaScript Engine, V8 is written in C++
Slide 24 www.edureka.co/angular-jsSlide 24
Why Node.js ?
Why it is required to run an
application in JavaScript server
environment like Node.js ?
Slide 25 www.edureka.co/angular-jsSlide 25
Node.js Architecture
Slide 26 www.edureka.co/angular-jsSlide 26
Who uses Node.js?
Slide 27 www.edureka.co/angular-js
DEMO
Node.js with Angular
Slide 28 www.edureka.co/angular-js
LIVE Online Class
Class Recording in LMS
24/7 Post Class Support
Module Wise Quiz
Project Work
Verifiable Certificate
Course Features
Slide 29 www.edureka.co/angular-js
Course Topics
 Module 1
» Introduction to JavaScript MVC Framework
and AngularJS
 Module 2
» Dependency Injection and Controllers
 Module 3
» Route, Directive and Filters
 Module 4
» Creating Custom Directives and Filters
 Module 5
» Third-party AngularJS Modules and Testing
Angular
 Module 6
» AngularJS with Node.js, Yeoman and Rest
Exposure
 Module 7
» Project Discussion
Slide 30 www.edureka.co/angular-jsSlide 30Slide 30Slide 30
Limited Period Offer
On AngularJS Course
To avail this offer please contact us:
US : 1800 275 9730 (toll free)
INDIA : +91 88808 62004
Email Us : sales@edureka.co
25% Off
Slide 31 www.edureka.co/angular-js
Questions
Slide 32 www.edureka.co/angular-js

More Related Content

PDF
Webinar on Angular JS titled 'Develop Responsive Single Page Application'
PDF
Angular JS - Develop Responsive Single Page Application
PDF
AngularJS : Superheroic JavaScript MVW Framework
PDF
Animation And Testing In AngularJS
PDF
Deep Dive into AngularJS Javascript Framework
PDF
AngularJS : Superheroic Javascript MVW Framework
PDF
AngularJS for Beginners
PDF
Getting Started With AngularJS
Webinar on Angular JS titled 'Develop Responsive Single Page Application'
Angular JS - Develop Responsive Single Page Application
AngularJS : Superheroic JavaScript MVW Framework
Animation And Testing In AngularJS
Deep Dive into AngularJS Javascript Framework
AngularJS : Superheroic Javascript MVW Framework
AngularJS for Beginners
Getting Started With AngularJS

What's hot (20)

PDF
Top 8 angular js framework for web development
PDF
9 reasons why angular js web development should be your choice in 2020
PPTX
Kalp Corporate Angular Js Tutorials
DOCX
Angular.js interview questions
PPTX
Angular 5,6,7
PDF
Android development 1july
PDF
Introduction to Android Development
PPTX
Training On Angular Js
PDF
AngularJS interview questions
PPTX
PDF
Angular material tutorial
PDF
AngularJS 101
PDF
Angular js interview question answer for fresher
PDF
ITCamp 2012 - Alex Gyoshev - Kendo-UI
PDF
Day In A Life Of A Node.js Developer
PDF
Develop Mobile App Using Android Lollipop
PDF
JavaScript : One To Many
PPTX
AngularJS Introduction (Talk given on Aug 5 2013)
PDF
Fundamentals and Implementations of Angular JS with renowned Technology Platf...
PPTX
Building android and i os apps with visual studio
Top 8 angular js framework for web development
9 reasons why angular js web development should be your choice in 2020
Kalp Corporate Angular Js Tutorials
Angular.js interview questions
Angular 5,6,7
Android development 1july
Introduction to Android Development
Training On Angular Js
AngularJS interview questions
Angular material tutorial
AngularJS 101
Angular js interview question answer for fresher
ITCamp 2012 - Alex Gyoshev - Kendo-UI
Day In A Life Of A Node.js Developer
Develop Mobile App Using Android Lollipop
JavaScript : One To Many
AngularJS Introduction (Talk given on Aug 5 2013)
Fundamentals and Implementations of Angular JS with renowned Technology Platf...
Building android and i os apps with visual studio
Ad

Viewers also liked (20)

PPTX
Why angular js Framework
PDF
AngularJS - What is it & Why is it awesome ? (with demos)
PDF
I'm Postal for Promises in Angular
PPTX
AngularJS is awesome
PDF
Angular from Scratch
PPT
Angular Seminar-js
PDF
A Work Day Of A Web Developer
PDF
최근 Javascript framework 조사
PPTX
Angular js
PDF
Building scalable applications with angular js
PDF
Angular js best practice
PPTX
Angular 2
PDF
Advanced Tips & Tricks for using Angular JS
PPTX
Get satrted angular js
PDF
Introduction to AngularJS
PDF
AngularJS Basics with Example
PPTX
Getting Started with Angular JS
PPTX
Introduction to Angularjs
PPTX
Single Page Application (SPA) using AngularJS
PPTX
Understanding angular js
Why angular js Framework
AngularJS - What is it & Why is it awesome ? (with demos)
I'm Postal for Promises in Angular
AngularJS is awesome
Angular from Scratch
Angular Seminar-js
A Work Day Of A Web Developer
최근 Javascript framework 조사
Angular js
Building scalable applications with angular js
Angular js best practice
Angular 2
Advanced Tips & Tricks for using Angular JS
Get satrted angular js
Introduction to AngularJS
AngularJS Basics with Example
Getting Started with Angular JS
Introduction to Angularjs
Single Page Application (SPA) using AngularJS
Understanding angular js
Ad

Similar to Live Demo : Trending Angular JS Featues (20)

PDF
Getting Started with AngularJS
PPTX
Introduction to AngularJs
PDF
AngularJS Curriculum-Zeolearn
PPTX
Learning AngularJS - Complete coverage of AngularJS features and concepts
PPTX
AngularJS.part1
PPTX
Intoduction to Angularjs
PPTX
Angular js for Beginnners
PDF
An Implementation Tour to AngularJS
PPT
Coffee@DBG - Exploring Angular JS
PPTX
Basics of AngularJS
PPTX
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
PPTX
Angular Presentation
PPTX
Intro to AngularJs
PDF
AngularJS Basics
PDF
AngularJS in practice
PDF
Workshop 12: AngularJS Parte I
PPT
Angular js
PPTX
ME vs WEB - AngularJS Fundamentals
PPTX
Angular workshop - Full Development Guide
PPTX
Practical AngularJS
Getting Started with AngularJS
Introduction to AngularJs
AngularJS Curriculum-Zeolearn
Learning AngularJS - Complete coverage of AngularJS features and concepts
AngularJS.part1
Intoduction to Angularjs
Angular js for Beginnners
An Implementation Tour to AngularJS
Coffee@DBG - Exploring Angular JS
Basics of AngularJS
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
Angular Presentation
Intro to AngularJs
AngularJS Basics
AngularJS in practice
Workshop 12: AngularJS Parte I
Angular js
ME vs WEB - AngularJS Fundamentals
Angular workshop - Full Development Guide
Practical AngularJS

More from Edureka! (20)

PDF
What to learn during the 21 days Lockdown | Edureka
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
PDF
Top 5 Trending Business Intelligence Tools | Edureka
PDF
Tableau Tutorial for Data Science | Edureka
PDF
Python Programming Tutorial | Edureka
PDF
Top 5 PMP Certifications | Edureka
PDF
Top Maven Interview Questions in 2020 | Edureka
PDF
Linux Mint Tutorial | Edureka
PDF
How to Deploy Java Web App in AWS| Edureka
PDF
Importance of Digital Marketing | Edureka
PDF
RPA in 2020 | Edureka
PDF
Email Notifications in Jenkins | Edureka
PDF
EA Algorithm in Machine Learning | Edureka
PDF
Cognitive AI Tutorial | Edureka
PDF
AWS Cloud Practitioner Tutorial | Edureka
PDF
Blue Prism Top Interview Questions | Edureka
PDF
Big Data on AWS Tutorial | Edureka
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
PDF
Kubernetes Installation on Ubuntu | Edureka
PDF
Introduction to DevOps | Edureka
What to learn during the 21 days Lockdown | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
Tableau Tutorial for Data Science | Edureka
Python Programming Tutorial | Edureka
Top 5 PMP Certifications | Edureka
Top Maven Interview Questions in 2020 | Edureka
Linux Mint Tutorial | Edureka
How to Deploy Java Web App in AWS| Edureka
Importance of Digital Marketing | Edureka
RPA in 2020 | Edureka
Email Notifications in Jenkins | Edureka
EA Algorithm in Machine Learning | Edureka
Cognitive AI Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
Blue Prism Top Interview Questions | Edureka
Big Data on AWS Tutorial | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Kubernetes Installation on Ubuntu | Edureka
Introduction to DevOps | Edureka

Recently uploaded (20)

PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Approach and Philosophy of On baking technology
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Encapsulation theory and applications.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Reach Out and Touch Someone: Haptics and Empathic Computing
Review of recent advances in non-invasive hemoglobin estimation
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Digital-Transformation-Roadmap-for-Companies.pptx
20250228 LYD VKU AI Blended-Learning.pptx
Machine learning based COVID-19 study performance prediction
Spectral efficient network and resource selection model in 5G networks
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Approach and Philosophy of On baking technology
The Rise and Fall of 3GPP – Time for a Sabbatical?
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Electronic commerce courselecture one. Pdf
Unlocking AI with Model Context Protocol (MCP)
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Encapsulation theory and applications.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx

Live Demo : Trending Angular JS Featues

  • 1. www.edureka.co/angular-js View AngularJS course details at www.edureka.co/angular-js For Queries during the session and class recording: Post on Twitter @edurekaIN: #askEdureka Post on Facebook /edurekaIN For more details please contact us: US : 1800 275 9730 (toll free) INDIA : +91 88808 62004 Email us : sales@edureka.co Live Demo : AngularJS Trending Features
  • 2. Slide 2 www.edureka.co/angular-jsSlide 2 Objectives At the end of this module, you will be able to understand: Controllers Two Way Data Binding Custom Directives and Filters Unit Testing in AngularJS AngularJS with Node.js
  • 3. Slide 3 www.edureka.co/angular-jsSlide 3 Controllers in AngularJS define the workflow presentation logic A JavaScript object Created by a standard JavaScript object constructor Attached to the view with ng-controller Controllers can be defined in the application as shown <div ng-controller=“MyController"> <body ng-controller=“MyController"> Controllers Defining Controller Using Controller in application var myApp = angular.module('myApp',[]); myApp.controller(‘MyController'.......
  • 4. Slide 4 www.edureka.co/angular-jsSlide 4 Injected as an argument to the controller function Holds the model data required by the view Binds data to the view using AngularJS two way data binding Represented by $scope in the controller function and links the controller to the view Figure shown is representation of scope app.controller(‘MyController', ['$scope', function($scope) { ………………….. ]}; }]); Scopes
  • 5. Slide 5 www.edureka.co/angular-jsSlide 5 MODEL AngularJS is a model driven application A Model encapsulates the application data Any change in the state, provides appropriate notifications to the controller and views On notification views updates the output display of the application Updating of view happens automatically with data bindings TEMPLATE Represents the model in the view and user interactions with application Model and Template
  • 6. Slide 6 www.edureka.co/angular-jsSlide 6Slide 6Slide 6 Putting Everything Together How to bring relation between Model, Controller and Templates in the application?
  • 7. Slide 7 www.edureka.co/angular-jsSlide 7Slide 7Slide 7 app.controller('ProductsController', ['$scope', function($scope) { $scope.product = { id: 1, name: 'Smart Phones‘, type: ‘Mobile‘, stores: [ { id: 1, name: 'Samsung Galaxy', quantity: 5}, { id: 2, name: 'Nokia', quantity: 3}, { id: 3, name: 'HTC', quantity: 6} ] }; }]); Controller Scope Injection Model Controller Structure
  • 8. Slide 8 www.edureka.co/angular-jsSlide 8Slide 8Slide 8 <div ng-controller="ProductController"> Id: <span ng-bind="product.id"></span> <br/> Name:<input type="text" ng-model="product.name" /> <br/> Category: <input type="text" ng-model="product.type" /> </div> Controller AngularJS Binding Model Binds form control to property Model Attribute Two Way Data Binding
  • 11. Slide 11 www.edureka.co/angular-jsSlide 11Slide 11Slide 11 Why Custom Directives? If AngularJS comes up with wide rich variety of directives, why it is required to create custom directive?
  • 12. Slide 12 www.edureka.co/angular-jsSlide 12 Need of Custom Directives AngularJS comes with a lot of built-in directives which can successfully manipulate the DOM elements and perform data binding much more... But at certain times like converting collection into grid and display in view breaks separation of concerns, so it is necessary to create directives as an element or attribute etc. This module will focus on the guidelines of creating the custom directives
  • 13. Slide 13 www.edureka.co/angular-jsSlide 13 Custom Directive Usage For a module “MyAppModule” a directive with restrict option will be done in the following way angular.module(MyModule', []) .directive(‘myDirective', function () { return { restrict: 'A', link: function (scope, elem, attrs) { } } Module Definition Directive Definition Restrict Option
  • 15. Slide 15 www.edureka.co/angular-jsSlide 15Slide 15Slide 15 Why Custom Filters If AngularJS comes up with wide rich variety of filters, why it is required to create custom filters?
  • 16. Slide 16 www.edureka.co/angular-jsSlide 16 Need of Custom Filters AngularJS comes with a lot of in-built filters which helps to build applications faster and easier. But there are some scenarios like in case of Angular currency filter, we need the denominations to be displayed differently than the built-in functionality. In scenarios like these we need to develop custom filters
  • 17. Slide 17 www.edureka.co/angular-jsSlide 17 Custom Filter Structure  AngularJS comes with elegant way of creating Filters  Integrating filters to the current application is lot easier by using the below syntax app.filter(‘filterName', function() { return function(input, option1, option2) { var out; //function code return out; });
  • 20. Slide 20 www.edureka.co/angular-jsSlide 20 Manual Testing Traditionally developers manually test their application Manual testing is less efficient Very difficult to track the test result Very difficult to test all the pieces of code Very difficult to test the integration of two ore more functions Differs from one developer to another developer
  • 21. Slide 21 www.edureka.co/angular-jsSlide 21 Unit Testing With Angular.js Add Test Watch Test Fail Watch Code Run Test Refactor
  • 23. Slide 23 www.edureka.co/angular-jsSlide 23 Node.js Node.js is an open source JavaScript runtime environment to develop server side applications Node.js runs on V8 JavaScript Engine, V8 is written in C++
  • 24. Slide 24 www.edureka.co/angular-jsSlide 24 Why Node.js ? Why it is required to run an application in JavaScript server environment like Node.js ?
  • 25. Slide 25 www.edureka.co/angular-jsSlide 25 Node.js Architecture
  • 28. Slide 28 www.edureka.co/angular-js LIVE Online Class Class Recording in LMS 24/7 Post Class Support Module Wise Quiz Project Work Verifiable Certificate Course Features
  • 29. Slide 29 www.edureka.co/angular-js Course Topics  Module 1 » Introduction to JavaScript MVC Framework and AngularJS  Module 2 » Dependency Injection and Controllers  Module 3 » Route, Directive and Filters  Module 4 » Creating Custom Directives and Filters  Module 5 » Third-party AngularJS Modules and Testing Angular  Module 6 » AngularJS with Node.js, Yeoman and Rest Exposure  Module 7 » Project Discussion
  • 30. Slide 30 www.edureka.co/angular-jsSlide 30Slide 30Slide 30 Limited Period Offer On AngularJS Course To avail this offer please contact us: US : 1800 275 9730 (toll free) INDIA : +91 88808 62004 Email Us : sales@edureka.co 25% Off

Editor's Notes

  • #3: PRD layout, Understanding it's basic features, designing basic report containing graphical chart, Conditional Formatting, studying the PRPT file format, building a basic report in PDF report