SlideShare une entreprise Scribd logo
1  sur  27
Télécharger pour lire hors ligne
Abdhesh Kumar
abdhesh@knoldus.com
Initial release 2009
1. What is AngularJs?
2. Key Points
3. Core Features of AngularJS
4. How is it works?
5. AngularJs Terminologies
6. AngularJs directives
7. How we start work on AngularJs?
8. AngularJs Tags
9. How we use Yeoman?
10. Advantages and Disadvantages
Agenda
What is Angular?
AngularJS is an open-source JavaScript framework,
maintained by Google, that assists with running single-page
applications. Its goal is to augment browser-based applications
with model–view–controller (MVC) capability, in an effort to
make both development and testing easier.
Key points of AngularJs
1. AngularJS is a client-side JavaScript framework used to
make single-page web applications
It means the browser only loads the page once, but then makes asynchronous
calls to the server to fetch new information
2. It helps you build front-ends for web-based applications
3. Makes creating a user interface (UI) easier through data-binding
4. It helps organize and architect an application means it is
prescribing a way for you to divide your application up into
smaller parts.
5. It runs in the web browser.
Core Features of AngularJS
1. Two Way Data-binding
Core Features of AngularJS ...
2. Model View Controller
MVC is a pattern for dividing an application into different parts (called Model, View,
and Controller), each with distinct responsibilities.
Core Features of AngularJS ...
3 .HTML Templates Deep Linking
Static HTML Dynamic Data
Final HTML
Core Features of AngularJS ...
4 .Deep Linking
Deep linking allows you to encode the state of the application in the
URL so that it can be bookmarked and the application can be restored
from the URL to the same state.
5 .Dependency Injection Directives
How is it works?
How is it works? ...
1. The browser loads the HTML and parses it into a DOM
2. The browser loads angular.js script
3. Angular waits for DOMContentLoaded event
4. Angular looks for ng-app directive, which designates the application boundary
5. The Module specified in ng-app (if any) is used to configure the $injector
6. The $injector is used to create the $compile service as well as $rootScope
7. The $compile service is used to compile the DOM and link it with $rootScope
8. The ng-init directive assigns World to the name property on the scope
9. The {{name}} interpolates the expression to Hello World!
AngularJs Terminologies
1. Controller
1.1 Controller is the code behind the view.
1.2 Construct the model and publish it to the view along with callback
methods.
AngularJs Terminologies ...
2. Model
The model is the data which is used merged with the template to
produce the view.
AngularJs Terminologies ...
3. View
The view is what the users sees. The view begins its life as a template,
it is merged with the model and finally rendered into the browser
DOM.
AngularJs Terminologies ...
4. Scope
The scope is responsible for detecting changes to the model
section and provides the execution context for expressions.
5. Directives
A directive is a behavior or DOM transformation which is
triggered by the presence of a custom attribute, element name,
or a class name.
6. Filters
Filters perform data transformation. Typically they are used in
conjunction with the locale to format the data in locale specific
output.
AngularJs directives
ng-app
Declares an element as a root element of the application allowing behavior to be modified through custom
HTML tags.
ng-bind
Automatically changes the text of a HTML element to the value of a given expression.
ng-model
Similar to ng-bind, but allows two-way data binding between the view and the scope.
ng-class
Allows class attributes to be dynamically loaded.
ng-controller
Specifies a JavaScript controller class that evaluates HTML expressions.
ng-repeat
Instantiate an element once per item from a collection.
ng-show & ng-hide
Conditionally show or hide an element, depending on the value of a boolean expression.
ng-switch
Conditionally instantiate one template from a set of choices, depending on the value of a selection
expression.
ng-view
The base directive responsible for handling routes that resolve JSON before rendering templates driven by
specified controllers.
ng-if
Basic if statement directive which allow to show the following element if the conditions are true.
How to use AngularJs
1. Include AngularJs Library
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.1/angular.min.js
"></script>
2. Create AngularJs Application
<html ng-app></html>
Or
<html ng-app=”demoApp”></html>
Or
<div ng-app></div>
Or
<div ng-app=”demoApp”></div>
3. Define Controller:
<div ng-controller="Ctrl">
<input type="text" ng-model="message">
</div>
4. Implementation of Controller
Function Ctrl($scope){
$scope.message=”Hello.Please Enter your name”;
}
AngularJs Tags
Binding:
1. <span ng-bind="{expression}"></span>
Ex.<span ng-bind="message"></span>
2. <p>{{message}}</p>
Looping:
1. <ul>
<li ng-repeat="thing in awesomeThings">{{thing}}</li>
</ul>
Include Template:
<div ng-view=”_template.html”></div>
How we begin?
We need a development setup e.g. -
Server
Task Runner
Test Runner
CoffeeScript / SASS transpiler
Dependency Management
Yeoman
Yo is used to generate things, from other generators to files and more.
Grunt is used for task management such as building, previewing and testing.
Bower: is used for dependency management, downloading and installing .js
components.
How we begin?
We need a development setup e.g. -
Server
Task Runner
Test Runner
CoffeeScript / SASS transpiler
Dependency Management
Yeoman
Yo is used to generate things, from other generators to files and more.
Grunt is used for task management such as building, previewing and testing.
Bower: is used for dependency management, downloading and installing .js
components.
How we use Yeoman?...
Yeoman
Yo : Scaffolding Tool
Grunt: Task Runner
Bower: Package Manager
Steps to create app
1.Installing Yeoman
To install yo, grunt, and bower, execute the following command:
$ npm install -g yo grunt-cli bower
2.Installing Generators
$npm install -g generator-angular
3.Creating the project
$ mkdir knolx-angularjs && cd knolx-angularjs
Now we are ready to use the available generators to build our application:
angular:app, angular:controller, angular:directive,angular:filter,angular:route
angular:service,angular:view
4.Creating application structure
$ yo angular:app knolxAngularApp
Steps to create app..
Steps to create app..
5.Running the project
To start the local web server run the following command:
$grunt server
6.Testing the project Grunt takes care of running all of your tests using Karma, so
execute the following command:
$ grunt test
7.Building the Project
7.1 .Concatenates all your JS into one file.
7.2 Versions all your files.
7.3 Optimizes all images and HTML templates.
7.4 Concatenates all your CSS into one file.
7.5 Generates Application Cache manifest file.
7.6 Building your application is easy – just run the following command:
$ grunt build
Advantages
Super fast development
Makes developing SPA easy
Awesome performance
Make apps scalable
Data-binding and automatic DOM manipulation
XHR/JSONP
Disadvantages
Good for IO driven apps only (not games)
SEO?
References
http://docs.angularjs.org
Thank you

Contenu connexe

Tendances

AngularJS application architecture
AngularJS application architectureAngularJS application architecture
AngularJS application architectureGabriele Falace
 
AngularJS: Overview & Key Features
AngularJS: Overview & Key FeaturesAngularJS: Overview & Key Features
AngularJS: Overview & Key FeaturesMohamad Al Asmar
 
Angular js for beginners
Angular js for beginnersAngular js for beginners
Angular js for beginnersMunir Hoque
 
AngularJS One Day Workshop
AngularJS One Day WorkshopAngularJS One Day Workshop
AngularJS One Day WorkshopShyam Seshadri
 
Introduction to Angular js 2.0
Introduction to Angular js 2.0Introduction to Angular js 2.0
Introduction to Angular js 2.0Nagaraju Sangam
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJSDavid Parsons
 
Introduction of angular js
Introduction of angular jsIntroduction of angular js
Introduction of angular jsTamer Solieman
 
AngularJS introduction
AngularJS introductionAngularJS introduction
AngularJS introductionTania Gonzales
 
AngularJs presentation
AngularJs presentation AngularJs presentation
AngularJs presentation Phan Tuan
 
AngularJS with RequireJS
AngularJS with RequireJSAngularJS with RequireJS
AngularJS with RequireJSJohannes Weber
 
Front end development with Angular JS
Front end development with Angular JSFront end development with Angular JS
Front end development with Angular JSBipin
 
AngularJS for Beginners
AngularJS for BeginnersAngularJS for Beginners
AngularJS for BeginnersEdureka!
 
Overview about AngularJS Framework
Overview about AngularJS Framework Overview about AngularJS Framework
Overview about AngularJS Framework Camilo Lopes
 
AngularJS - Services
AngularJS - ServicesAngularJS - Services
AngularJS - ServicesNir Kaufman
 
Up & running with ECMAScript6
Up & running with ECMAScript6Up & running with ECMAScript6
Up & running with ECMAScript6Nir Kaufman
 

Tendances (20)

AngularJS application architecture
AngularJS application architectureAngularJS application architecture
AngularJS application architecture
 
Introduction to Angularjs
Introduction to AngularjsIntroduction to Angularjs
Introduction to Angularjs
 
AngularJS
AngularJSAngularJS
AngularJS
 
AngularJS Best Practices
AngularJS Best PracticesAngularJS Best Practices
AngularJS Best Practices
 
AngularJS: Overview & Key Features
AngularJS: Overview & Key FeaturesAngularJS: Overview & Key Features
AngularJS: Overview & Key Features
 
Angular js for beginners
Angular js for beginnersAngular js for beginners
Angular js for beginners
 
AngularJS One Day Workshop
AngularJS One Day WorkshopAngularJS One Day Workshop
AngularJS One Day Workshop
 
Introduction to Angular js 2.0
Introduction to Angular js 2.0Introduction to Angular js 2.0
Introduction to Angular js 2.0
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
 
Introduction of angular js
Introduction of angular jsIntroduction of angular js
Introduction of angular js
 
AngularJS introduction
AngularJS introductionAngularJS introduction
AngularJS introduction
 
AngularJs presentation
AngularJs presentation AngularJs presentation
AngularJs presentation
 
AngularJS with RequireJS
AngularJS with RequireJSAngularJS with RequireJS
AngularJS with RequireJS
 
Angular js
Angular jsAngular js
Angular js
 
Front end development with Angular JS
Front end development with Angular JSFront end development with Angular JS
Front end development with Angular JS
 
AngularJS for Beginners
AngularJS for BeginnersAngularJS for Beginners
AngularJS for Beginners
 
Overview about AngularJS Framework
Overview about AngularJS Framework Overview about AngularJS Framework
Overview about AngularJS Framework
 
AngularJS - Services
AngularJS - ServicesAngularJS - Services
AngularJS - Services
 
Up & running with ECMAScript6
Up & running with ECMAScript6Up & running with ECMAScript6
Up & running with ECMAScript6
 

En vedette

Angularjs 131211063348-phpapp01
Angularjs 131211063348-phpapp01Angularjs 131211063348-phpapp01
Angularjs 131211063348-phpapp01Arunangsu Sahu
 
AngularJS vs jQuery
AngularJS vs jQueryAngularJS vs jQuery
AngularJS vs jQueryPayPal
 
Angular js presentation at Datacom
Angular js presentation at DatacomAngular js presentation at Datacom
Angular js presentation at DatacomDavid Xi Peng Yang
 
Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa...
Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa...Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa...
Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa...FalafelSoftware
 
AngularJS : Superheroic JavaScript MVW Framework
AngularJS : Superheroic JavaScript MVW FrameworkAngularJS : Superheroic JavaScript MVW Framework
AngularJS : Superheroic JavaScript MVW FrameworkEdureka!
 
Single Page Application (SPA) using AngularJS
Single Page Application (SPA) using AngularJSSingle Page Application (SPA) using AngularJS
Single Page Application (SPA) using AngularJSM R Rony
 

En vedette (11)

Dive into AngularJS and directives
Dive into AngularJS and directivesDive into AngularJS and directives
Dive into AngularJS and directives
 
AngularJS - TechTalk 3/2/2014
AngularJS - TechTalk 3/2/2014AngularJS - TechTalk 3/2/2014
AngularJS - TechTalk 3/2/2014
 
Intro to AngularJS
Intro to AngularJS Intro to AngularJS
Intro to AngularJS
 
Angularjs 131211063348-phpapp01
Angularjs 131211063348-phpapp01Angularjs 131211063348-phpapp01
Angularjs 131211063348-phpapp01
 
AngularJS vs jQuery
AngularJS vs jQueryAngularJS vs jQuery
AngularJS vs jQuery
 
Angular js presentation at Datacom
Angular js presentation at DatacomAngular js presentation at Datacom
Angular js presentation at Datacom
 
Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa...
Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa...Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa...
Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa...
 
Introduction to AngularJs
Introduction to AngularJsIntroduction to AngularJs
Introduction to AngularJs
 
AngularJS : Superheroic JavaScript MVW Framework
AngularJS : Superheroic JavaScript MVW FrameworkAngularJS : Superheroic JavaScript MVW Framework
AngularJS : Superheroic JavaScript MVW Framework
 
AngularJS
AngularJSAngularJS
AngularJS
 
Single Page Application (SPA) using AngularJS
Single Page Application (SPA) using AngularJSSingle Page Application (SPA) using AngularJS
Single Page Application (SPA) using AngularJS
 

Similaire à AngularJs

One Weekend With AngularJS
One Weekend With AngularJSOne Weekend With AngularJS
One Weekend With AngularJSYashobanta Bai
 
Intoduction to Angularjs
Intoduction to AngularjsIntoduction to Angularjs
Intoduction to AngularjsGaurav Agrawal
 
Kalp Corporate Angular Js Tutorials
Kalp Corporate Angular Js TutorialsKalp Corporate Angular Js Tutorials
Kalp Corporate Angular Js TutorialsKalp Corporate
 
angularjs_tutorial.docx
angularjs_tutorial.docxangularjs_tutorial.docx
angularjs_tutorial.docxtelegramvip
 
Angular js interview question answer for fresher
Angular js interview question answer for fresherAngular js interview question answer for fresher
Angular js interview question answer for fresherRavi Bhadauria
 
AngularJs (1.x) Presentation
AngularJs (1.x) PresentationAngularJs (1.x) Presentation
AngularJs (1.x) PresentationRaghubir Singh
 
AngularJS Basics
AngularJS BasicsAngularJS Basics
AngularJS BasicsRavi Mone
 
Angular js 1.3 presentation for fed nov 2014
Angular js 1.3 presentation for fed   nov 2014Angular js 1.3 presentation for fed   nov 2014
Angular js 1.3 presentation for fed nov 2014Sarah Hudson
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptxangularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptxsarah david
 
A Big Picture Of AngularJS
A Big Picture Of AngularJSA Big Picture Of AngularJS
A Big Picture Of AngularJSNitin Pandit
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pdf
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pdfangularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pdf
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pdfsarah david
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptxangularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptxsarah david
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptxangularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptxsarah david
 

Similaire à AngularJs (20)

One Weekend With AngularJS
One Weekend With AngularJSOne Weekend With AngularJS
One Weekend With AngularJS
 
AngularJS in practice
AngularJS in practiceAngularJS in practice
AngularJS in practice
 
Intoduction to Angularjs
Intoduction to AngularjsIntoduction to Angularjs
Intoduction to Angularjs
 
Kalp Corporate Angular Js Tutorials
Kalp Corporate Angular Js TutorialsKalp Corporate Angular Js Tutorials
Kalp Corporate Angular Js Tutorials
 
angularjs_tutorial.docx
angularjs_tutorial.docxangularjs_tutorial.docx
angularjs_tutorial.docx
 
Angular js
Angular jsAngular js
Angular js
 
Training On Angular Js
Training On Angular JsTraining On Angular Js
Training On Angular Js
 
Angular js interview question answer for fresher
Angular js interview question answer for fresherAngular js interview question answer for fresher
Angular js interview question answer for fresher
 
AngularJs (1.x) Presentation
AngularJs (1.x) PresentationAngularJs (1.x) Presentation
AngularJs (1.x) Presentation
 
Angular js workshop
Angular js workshopAngular js workshop
Angular js workshop
 
Ng talk
Ng talkNg talk
Ng talk
 
AngularJS Basics
AngularJS BasicsAngularJS Basics
AngularJS Basics
 
AngularJS By Vipin
AngularJS By VipinAngularJS By Vipin
AngularJS By Vipin
 
Angular js 1.3 presentation for fed nov 2014
Angular js 1.3 presentation for fed   nov 2014Angular js 1.3 presentation for fed   nov 2014
Angular js 1.3 presentation for fed nov 2014
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptxangularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
 
A Big Picture Of AngularJS
A Big Picture Of AngularJSA Big Picture Of AngularJS
A Big Picture Of AngularJS
 
Angular Js Basics
Angular Js BasicsAngular Js Basics
Angular Js Basics
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pdf
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pdfangularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pdf
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pdf
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptxangularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptxangularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
 

Dernier

Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 

Dernier (20)

Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

AngularJs

  • 2. 1. What is AngularJs? 2. Key Points 3. Core Features of AngularJS 4. How is it works? 5. AngularJs Terminologies 6. AngularJs directives 7. How we start work on AngularJs? 8. AngularJs Tags 9. How we use Yeoman? 10. Advantages and Disadvantages Agenda
  • 3. What is Angular? AngularJS is an open-source JavaScript framework, maintained by Google, that assists with running single-page applications. Its goal is to augment browser-based applications with model–view–controller (MVC) capability, in an effort to make both development and testing easier.
  • 4. Key points of AngularJs 1. AngularJS is a client-side JavaScript framework used to make single-page web applications It means the browser only loads the page once, but then makes asynchronous calls to the server to fetch new information 2. It helps you build front-ends for web-based applications 3. Makes creating a user interface (UI) easier through data-binding 4. It helps organize and architect an application means it is prescribing a way for you to divide your application up into smaller parts. 5. It runs in the web browser.
  • 5. Core Features of AngularJS 1. Two Way Data-binding
  • 6. Core Features of AngularJS ... 2. Model View Controller MVC is a pattern for dividing an application into different parts (called Model, View, and Controller), each with distinct responsibilities.
  • 7. Core Features of AngularJS ... 3 .HTML Templates Deep Linking Static HTML Dynamic Data Final HTML
  • 8. Core Features of AngularJS ... 4 .Deep Linking Deep linking allows you to encode the state of the application in the URL so that it can be bookmarked and the application can be restored from the URL to the same state. 5 .Dependency Injection Directives
  • 9. How is it works?
  • 10. How is it works? ... 1. The browser loads the HTML and parses it into a DOM 2. The browser loads angular.js script 3. Angular waits for DOMContentLoaded event 4. Angular looks for ng-app directive, which designates the application boundary 5. The Module specified in ng-app (if any) is used to configure the $injector 6. The $injector is used to create the $compile service as well as $rootScope 7. The $compile service is used to compile the DOM and link it with $rootScope 8. The ng-init directive assigns World to the name property on the scope 9. The {{name}} interpolates the expression to Hello World!
  • 11. AngularJs Terminologies 1. Controller 1.1 Controller is the code behind the view. 1.2 Construct the model and publish it to the view along with callback methods.
  • 12. AngularJs Terminologies ... 2. Model The model is the data which is used merged with the template to produce the view.
  • 13. AngularJs Terminologies ... 3. View The view is what the users sees. The view begins its life as a template, it is merged with the model and finally rendered into the browser DOM.
  • 14. AngularJs Terminologies ... 4. Scope The scope is responsible for detecting changes to the model section and provides the execution context for expressions. 5. Directives A directive is a behavior or DOM transformation which is triggered by the presence of a custom attribute, element name, or a class name. 6. Filters Filters perform data transformation. Typically they are used in conjunction with the locale to format the data in locale specific output.
  • 15. AngularJs directives ng-app Declares an element as a root element of the application allowing behavior to be modified through custom HTML tags. ng-bind Automatically changes the text of a HTML element to the value of a given expression. ng-model Similar to ng-bind, but allows two-way data binding between the view and the scope. ng-class Allows class attributes to be dynamically loaded. ng-controller Specifies a JavaScript controller class that evaluates HTML expressions. ng-repeat Instantiate an element once per item from a collection. ng-show & ng-hide Conditionally show or hide an element, depending on the value of a boolean expression. ng-switch Conditionally instantiate one template from a set of choices, depending on the value of a selection expression. ng-view The base directive responsible for handling routes that resolve JSON before rendering templates driven by specified controllers. ng-if Basic if statement directive which allow to show the following element if the conditions are true.
  • 16. How to use AngularJs 1. Include AngularJs Library <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.1/angular.min.js "></script> 2. Create AngularJs Application <html ng-app></html> Or <html ng-app=”demoApp”></html> Or <div ng-app></div> Or <div ng-app=”demoApp”></div> 3. Define Controller: <div ng-controller="Ctrl"> <input type="text" ng-model="message"> </div> 4. Implementation of Controller Function Ctrl($scope){ $scope.message=”Hello.Please Enter your name”; }
  • 17. AngularJs Tags Binding: 1. <span ng-bind="{expression}"></span> Ex.<span ng-bind="message"></span> 2. <p>{{message}}</p> Looping: 1. <ul> <li ng-repeat="thing in awesomeThings">{{thing}}</li> </ul> Include Template: <div ng-view=”_template.html”></div>
  • 18. How we begin? We need a development setup e.g. - Server Task Runner Test Runner CoffeeScript / SASS transpiler Dependency Management Yeoman Yo is used to generate things, from other generators to files and more. Grunt is used for task management such as building, previewing and testing. Bower: is used for dependency management, downloading and installing .js components.
  • 19. How we begin? We need a development setup e.g. - Server Task Runner Test Runner CoffeeScript / SASS transpiler Dependency Management Yeoman Yo is used to generate things, from other generators to files and more. Grunt is used for task management such as building, previewing and testing. Bower: is used for dependency management, downloading and installing .js components.
  • 20. How we use Yeoman?... Yeoman Yo : Scaffolding Tool Grunt: Task Runner Bower: Package Manager
  • 21. Steps to create app 1.Installing Yeoman To install yo, grunt, and bower, execute the following command: $ npm install -g yo grunt-cli bower 2.Installing Generators $npm install -g generator-angular 3.Creating the project $ mkdir knolx-angularjs && cd knolx-angularjs Now we are ready to use the available generators to build our application: angular:app, angular:controller, angular:directive,angular:filter,angular:route angular:service,angular:view 4.Creating application structure $ yo angular:app knolxAngularApp
  • 23. Steps to create app.. 5.Running the project To start the local web server run the following command: $grunt server 6.Testing the project Grunt takes care of running all of your tests using Karma, so execute the following command: $ grunt test 7.Building the Project 7.1 .Concatenates all your JS into one file. 7.2 Versions all your files. 7.3 Optimizes all images and HTML templates. 7.4 Concatenates all your CSS into one file. 7.5 Generates Application Cache manifest file. 7.6 Building your application is easy – just run the following command: $ grunt build
  • 24. Advantages Super fast development Makes developing SPA easy Awesome performance Make apps scalable Data-binding and automatic DOM manipulation XHR/JSONP
  • 25. Disadvantages Good for IO driven apps only (not games) SEO?