Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Angular Js Second Edition Workshop

Yassine Tasfaout
March 28, 2017
92

Angular Js Second Edition Workshop

This is my second edition of Angular Js Workshop at Google Developer Tlemcen, Algeria

Yassine Tasfaout

March 28, 2017
Tweet

Transcript

  1. Agenda 1- Introduction to Javascript 2- What is Angular Js

    3- Why & When to use it 4- Angular Js Structure 5- Getting Started
  2. Tkhantich ! Some code Samples // Variable Declaration var gdgDevFest

    = “Awesomeness"; // Array Declaration var gdgArray = ["Yassine",true, 2,function(){return 1}]; // Object Declaration var gdgObject = { name : "DevFest", location : "Tlemcen", speakers : ["Yassine","Samad","Charaf"] };
  3. Tkhantich ! Some code Samples //Function return a function Inception!

    function add(n){ return function(b){ return n+b; }; } //Sorting an array ASCE function asce(arr){ arr.sort(function(a,b){ return a-b; }); }
  4. Tkhantich ! Some code Samples //Get the distance between two

    point in xy scale var arr = [[0,0],[5,1]]; function getLength(arr) { var length = Math.sqrt( Math.pow(arr[0][0] - arr[1][0],2) + Math.pow(arr[0][1] - arr[1][1],2)); return length.toFixed(2); } getLength(arr);
  5. What is Angular Js MVC javascript framework that will help

    us build dynamic web application specially SPA
  6. MVC MVC : Model, View & Controller Model : Is

    the data View : What the user sees Controller: All the logic that connect the model with the view
  7. Why & When to use MVC or DOM MVC Framework

    is great at : -Handeling Data -Listen to user interactions -Presenting data or changes back to the user -Providing a pipeline, between your data and the view. And various inputs, that allow the user to interact with that data. DOM library is great at : -Visual enhancement of the already available data. …
  8. Angular Js Structure Key Elements: - Two way data binding

    - Controllers - Directives - Filters - Factories