SlideShare a Scribd company logo
Beginner’s Workshop 
Jugnu Sharma 
SAL1
History 
• Origins within Google, devloped by Misko 
Hevery and team 
• 17,000 lines in 6 months => 1,500 in 3 weeks
Killer Features 
• Two-way binding 
• Organise your js 
• Declarative coding for UI 
• Teaching HTML new tricks – new extention for html 
• Separation of model & view, No DOM/View 
manipulation, less code 
• Great for single page apps 
• Awesome adoption and great community 
• Unit testable, E2E testable 
• Angular play well with jq
Angularjs beginners-workshop1
Angular Site 
• angularjs.org
First Line of Code with Anularjs 
Bootstrap for css 
Angular.js
What is Module? 
1. A module is a collection of services, directives, filters, and configuration 
information. 
2. Make our code more maintainable, readable and testable 
3. Where we define dependencies for our app, Module can use other module 
4. Third party code can be packaged as reusable modules. 
5. The modules can be loaded in any/parallel order (due to delayed nature of 
module execution). 
6. Some Angular modules are in separate files: Eg. ngRoute is in angularjs-route. 
min.js 
M 
M M 
M
First Line of Code with Anularjs 
M 
Angularjs 
Dependencies 
Module Name
Other in-built declarations in Angular 
Ng-App ng-Bind ng-BindHtml ng-BindTemplate ng- 
Blur ng-Change ng-Checked ng-Class ng-ClassEven 
ng-ClassOdd ng-Click ng-Cloak ng-Controller ng- 
Copy ng-Csp ngCut ngDblclick ngDisabled ngFocus 
ngForm ng-Hide ng-Href ng-If ngI-nclude ng-Init ng- 
Keydown ng-Keypress ng-Keyup ng-List ng-Model 
ng-Mousedown ng-Mouseenter ng-Mouseleave ng- 
Mousemove ng-Mouseover ng-Mouseup ng- 
NonBindable ng-Open ng-Paste ng-Pluralize ng- 
Readonly ng-Repeat ng-Selected ng-Show ngSrc ng- 
Srcset ng-Style ng-Submit ng-Switch ng-Transclude 
ng-Value
Adding Directive in html 
M 
D Run this module when the page load. 
Angularjs 
Dependencies 
Module Name
Expressions 
• Expressions can be embedded anywhere 
• … even for class values 
• There are special filters that you can use 
(currency) 
• Values are automatically bound
Expressions 
E We are of expression of our application. 
Allow you to add dynamic value to your html. 
Angular expressions are like JavaScript expressions with the following differences: 
Numeric Operation 
String Opration 
More Example: https://docs.angularjs.org/guide/expression 
But for example url 
We are of expression of our application. 
But for example url
Ex 04: More expressions
Learning 
• So far you learn basics of 
M D E 
Do your self 
Objectives: 
• Create a Module named firstApp so we can get started on this 
marketing journey. 
• Include firstApp in html 
• Write down hello world in expression in H1 element
Controllers 
C 
• Controllers where we define our app behavior by defining functions and value. 
Wrapping your code in closure is good habit 
C 
Notice that Controller must be attached( 
inside)your app 
Name of Controller 
Property of Controller 
Simple JavaScript Object.
Attaching Controller 
Used Emmet sublime 
packaged controller – it’s a 
good habbit to write html is 
less time 
+ TAB 
Directive Controller name Alias 
Expressions
Make life easy with ng-reapet 
Directive 
Ng-repeat alias
Differences from jQuery 
• Declarative code, not imperative (explicitly 
stating, say with functions, what action needs 
to be performed) 
• Automatic data binding 
• No direct DOM manipulation
Resources 
• angularjs.org 
• Google Groups: AngularJS 
• Google+: AngularJS 
• ngmodules.org 
• Github: angular-ui.github.io 
• Google+: AngularJS India
Angularjs beginners-workshop1
The END
Ad

Recommended

Angularjs
Angularjs
Sabin Tamrakar
 
Angular js best practice
Angular js best practice
Matteo Scandolo
 
Angularjs for kolkata drupal meetup
Angularjs for kolkata drupal meetup
Goutam Dey
 
Introduction to Angular 2
Introduction to Angular 2
Tuan Trung Vo
 
Modules in AngularJs
Modules in AngularJs
K Arunkumar
 
Angular 4 and TypeScript
Angular 4 and TypeScript
Ahmed El-Kady
 
Angular 2 overview
Angular 2 overview
Jesse Warden
 
Introduction to SPA with AngularJS
Introduction to SPA with AngularJS
Riki Pribadi
 
Angular Js
Angular Js
Knoldus Inc.
 
Angularjs interview questions and answers
Angularjs interview questions and answers
Anil Singh
 
Ng talk
Ng talk
Aymene Bennour
 
Angular.js - JS Camp UKraine 2013
Angular.js - JS Camp UKraine 2013
Max Klymyshyn
 
Angularjs - custom directives part 05
Angularjs - custom directives part 05
Mohd Abdul Baquee
 
Developing a Demo Application with Angular 4 - J2I
Developing a Demo Application with Angular 4 - J2I
Nader Debbabi
 
AngularJS introduction
AngularJS introduction
Tania Gonzales
 
Tech Webinar: Angular 2, Introduction to a new framework
Tech Webinar: Angular 2, Introduction to a new framework
Codemotion
 
AngularJS best-practices
AngularJS best-practices
Henry Tao
 
AngularJS 2.0
AngularJS 2.0
Boyan Mihaylov
 
Design p atterns
Design p atterns
Amr Abd El Latief
 
Angular1x and Angular 2 for Beginners
Angular1x and Angular 2 for Beginners
Oswald Campesato
 
AngularJS interview questions
AngularJS interview questions
Uri Lukach
 
AngularJs advanced Topics
AngularJs advanced Topics
Amr Abd El Latief
 
Introduction to rails
Introduction to rails
Chamnap Chhorn
 
Get satrted angular js
Get satrted angular js
Alexandre Marreiros
 
AngularJS
AngularJS
Hiten Pratap Singh
 
Angular EE - Special Workshop by Nir Kaufman
Angular EE - Special Workshop by Nir Kaufman
Nir Kaufman
 
Introduction to Angular 2
Introduction to Angular 2
Knoldus Inc.
 
Beyond AngularJS: Best practices and more
Beyond AngularJS: Best practices and more
Ari Lerner
 
AngularJS Beginners Workshop
AngularJS Beginners Workshop
Sathish VJ
 
One Weekend With AngularJS
One Weekend With AngularJS
Yashobanta Bai
 

More Related Content

What's hot (20)

Angular Js
Angular Js
Knoldus Inc.
 
Angularjs interview questions and answers
Angularjs interview questions and answers
Anil Singh
 
Ng talk
Ng talk
Aymene Bennour
 
Angular.js - JS Camp UKraine 2013
Angular.js - JS Camp UKraine 2013
Max Klymyshyn
 
Angularjs - custom directives part 05
Angularjs - custom directives part 05
Mohd Abdul Baquee
 
Developing a Demo Application with Angular 4 - J2I
Developing a Demo Application with Angular 4 - J2I
Nader Debbabi
 
AngularJS introduction
AngularJS introduction
Tania Gonzales
 
Tech Webinar: Angular 2, Introduction to a new framework
Tech Webinar: Angular 2, Introduction to a new framework
Codemotion
 
AngularJS best-practices
AngularJS best-practices
Henry Tao
 
AngularJS 2.0
AngularJS 2.0
Boyan Mihaylov
 
Design p atterns
Design p atterns
Amr Abd El Latief
 
Angular1x and Angular 2 for Beginners
Angular1x and Angular 2 for Beginners
Oswald Campesato
 
AngularJS interview questions
AngularJS interview questions
Uri Lukach
 
AngularJs advanced Topics
AngularJs advanced Topics
Amr Abd El Latief
 
Introduction to rails
Introduction to rails
Chamnap Chhorn
 
Get satrted angular js
Get satrted angular js
Alexandre Marreiros
 
AngularJS
AngularJS
Hiten Pratap Singh
 
Angular EE - Special Workshop by Nir Kaufman
Angular EE - Special Workshop by Nir Kaufman
Nir Kaufman
 
Introduction to Angular 2
Introduction to Angular 2
Knoldus Inc.
 
Beyond AngularJS: Best practices and more
Beyond AngularJS: Best practices and more
Ari Lerner
 
Angularjs interview questions and answers
Angularjs interview questions and answers
Anil Singh
 
Angular.js - JS Camp UKraine 2013
Angular.js - JS Camp UKraine 2013
Max Klymyshyn
 
Angularjs - custom directives part 05
Angularjs - custom directives part 05
Mohd Abdul Baquee
 
Developing a Demo Application with Angular 4 - J2I
Developing a Demo Application with Angular 4 - J2I
Nader Debbabi
 
AngularJS introduction
AngularJS introduction
Tania Gonzales
 
Tech Webinar: Angular 2, Introduction to a new framework
Tech Webinar: Angular 2, Introduction to a new framework
Codemotion
 
AngularJS best-practices
AngularJS best-practices
Henry Tao
 
Angular1x and Angular 2 for Beginners
Angular1x and Angular 2 for Beginners
Oswald Campesato
 
AngularJS interview questions
AngularJS interview questions
Uri Lukach
 
Angular EE - Special Workshop by Nir Kaufman
Angular EE - Special Workshop by Nir Kaufman
Nir Kaufman
 
Introduction to Angular 2
Introduction to Angular 2
Knoldus Inc.
 
Beyond AngularJS: Best practices and more
Beyond AngularJS: Best practices and more
Ari Lerner
 

Similar to Angularjs beginners-workshop1 (20)

AngularJS Beginners Workshop
AngularJS Beginners Workshop
Sathish VJ
 
One Weekend With AngularJS
One Weekend With AngularJS
Yashobanta Bai
 
Angular js for Beginnners
Angular js for Beginnners
Santosh Kumar Kar
 
Kalp Corporate Angular Js Tutorials
Kalp Corporate Angular Js Tutorials
Kalp Corporate
 
AngularJS
AngularJS
Srivatsan Krishnamachari
 
AngularJs
AngularJs
Abdhesh Kumar
 
Angularjs 131211063348-phpapp01
Angularjs 131211063348-phpapp01
Arunangsu Sahu
 
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
murtazahaveliwala
 
Getting Started With AngularJS
Getting Started With AngularJS
Edureka!
 
AngularJS for Beginners
AngularJS for Beginners
Edureka!
 
Angular js
Angular js
Knoldus Inc.
 
Getting Started with AngularJS
Getting Started with AngularJS
Edureka!
 
ME vs WEB - AngularJS Fundamentals
ME vs WEB - AngularJS Fundamentals
Aviran Cohen
 
Learning AngularJS - Complete coverage of AngularJS features and concepts
Learning AngularJS - Complete coverage of AngularJS features and concepts
Suresh Patidar
 
Angular JS training institute in Jaipur
Angular JS training institute in Jaipur
HEMANT SAXENA
 
Introduction to Angularjs
Introduction to Angularjs
Manish Shekhawat
 
Introduction to Angularjs : kishan kumar
Introduction to Angularjs : kishan kumar
Appfinz Technologies
 
AngularJS Beginner Day One
AngularJS Beginner Day One
Troy Miles
 
Gettings started with the superheroic JavaScript library AngularJS
Gettings started with the superheroic JavaScript library AngularJS
Armin Vieweg
 
AngularJS By Vipin
AngularJS By Vipin
Vipin Mundayad
 
AngularJS Beginners Workshop
AngularJS Beginners Workshop
Sathish VJ
 
One Weekend With AngularJS
One Weekend With AngularJS
Yashobanta Bai
 
Kalp Corporate Angular Js Tutorials
Kalp Corporate Angular Js Tutorials
Kalp Corporate
 
Angularjs 131211063348-phpapp01
Angularjs 131211063348-phpapp01
Arunangsu Sahu
 
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
murtazahaveliwala
 
Getting Started With AngularJS
Getting Started With AngularJS
Edureka!
 
AngularJS for Beginners
AngularJS for Beginners
Edureka!
 
Getting Started with AngularJS
Getting Started with AngularJS
Edureka!
 
ME vs WEB - AngularJS Fundamentals
ME vs WEB - AngularJS Fundamentals
Aviran Cohen
 
Learning AngularJS - Complete coverage of AngularJS features and concepts
Learning AngularJS - Complete coverage of AngularJS features and concepts
Suresh Patidar
 
Angular JS training institute in Jaipur
Angular JS training institute in Jaipur
HEMANT SAXENA
 
Introduction to Angularjs : kishan kumar
Introduction to Angularjs : kishan kumar
Appfinz Technologies
 
AngularJS Beginner Day One
AngularJS Beginner Day One
Troy Miles
 
Gettings started with the superheroic JavaScript library AngularJS
Gettings started with the superheroic JavaScript library AngularJS
Armin Vieweg
 
Ad

Angularjs beginners-workshop1

  • 2. History • Origins within Google, devloped by Misko Hevery and team • 17,000 lines in 6 months => 1,500 in 3 weeks
  • 3. Killer Features • Two-way binding • Organise your js • Declarative coding for UI • Teaching HTML new tricks – new extention for html • Separation of model & view, No DOM/View manipulation, less code • Great for single page apps • Awesome adoption and great community • Unit testable, E2E testable • Angular play well with jq
  • 5. Angular Site • angularjs.org
  • 6. First Line of Code with Anularjs Bootstrap for css Angular.js
  • 7. What is Module? 1. A module is a collection of services, directives, filters, and configuration information. 2. Make our code more maintainable, readable and testable 3. Where we define dependencies for our app, Module can use other module 4. Third party code can be packaged as reusable modules. 5. The modules can be loaded in any/parallel order (due to delayed nature of module execution). 6. Some Angular modules are in separate files: Eg. ngRoute is in angularjs-route. min.js M M M M
  • 8. First Line of Code with Anularjs M Angularjs Dependencies Module Name
  • 9. Other in-built declarations in Angular Ng-App ng-Bind ng-BindHtml ng-BindTemplate ng- Blur ng-Change ng-Checked ng-Class ng-ClassEven ng-ClassOdd ng-Click ng-Cloak ng-Controller ng- Copy ng-Csp ngCut ngDblclick ngDisabled ngFocus ngForm ng-Hide ng-Href ng-If ngI-nclude ng-Init ng- Keydown ng-Keypress ng-Keyup ng-List ng-Model ng-Mousedown ng-Mouseenter ng-Mouseleave ng- Mousemove ng-Mouseover ng-Mouseup ng- NonBindable ng-Open ng-Paste ng-Pluralize ng- Readonly ng-Repeat ng-Selected ng-Show ngSrc ng- Srcset ng-Style ng-Submit ng-Switch ng-Transclude ng-Value
  • 10. Adding Directive in html M D Run this module when the page load. Angularjs Dependencies Module Name
  • 11. Expressions • Expressions can be embedded anywhere • … even for class values • There are special filters that you can use (currency) • Values are automatically bound
  • 12. Expressions E We are of expression of our application. Allow you to add dynamic value to your html. Angular expressions are like JavaScript expressions with the following differences: Numeric Operation String Opration More Example: https://docs.angularjs.org/guide/expression But for example url We are of expression of our application. But for example url
  • 13. Ex 04: More expressions
  • 14. Learning • So far you learn basics of M D E Do your self Objectives: • Create a Module named firstApp so we can get started on this marketing journey. • Include firstApp in html • Write down hello world in expression in H1 element
  • 15. Controllers C • Controllers where we define our app behavior by defining functions and value. Wrapping your code in closure is good habit C Notice that Controller must be attached( inside)your app Name of Controller Property of Controller Simple JavaScript Object.
  • 16. Attaching Controller Used Emmet sublime packaged controller – it’s a good habbit to write html is less time + TAB Directive Controller name Alias Expressions
  • 17. Make life easy with ng-reapet Directive Ng-repeat alias
  • 18. Differences from jQuery • Declarative code, not imperative (explicitly stating, say with functions, what action needs to be performed) • Automatic data binding • No direct DOM manipulation
  • 19. Resources • angularjs.org • Google Groups: AngularJS • Google+: AngularJS • ngmodules.org • Github: angular-ui.github.io • Google+: AngularJS India

Editor's Notes

  • #3: they start with an anecdote, discussing how they were working on a web application at Google. They have already written 17000 lines of code in about 6 months and it was almost finished, albeit with great frustration related to development speed and testability. This guy, Miško Hevery, tells everyone that by using a framework that he wrote in his spare time (you gotta love devs!) they could rewrite the whole application in two weeks. He was wrong, they did it in three weeks and at the end the whole thing has only 1500 lines of code and was fully testable. 90% less code, in 90% less time. And it was very testable.
  • #11: module not doing anything yet, but just by including it, its going to treat this html inside this element as a part of angular app. and this mean we can start writing expression,
  • #16: Now we will see how to get access this data in our html.
  • #17: To insert data in your page with controller, first need to add ng-controller directive in html, this allow us to attache our controller to this element, the value of controller is name of controller, and we use as store is alias, which we will use in our expresstion