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

ngGirls slides - intro to Angular

ngGirls slides - intro to Angular

Slides used in ngGirls workshops. Intro to ngGirls and to Angular. Component-based Architecture, Typescript.

Shmuela Jacobs

May 11, 2018
Tweet

More Decks by Shmuela Jacobs

Other Decks in Programming

Transcript

  1. ANGULAR https://angular.io https://github.com/angular/angular • framework platform • web, mobile web

    • native mobile, desktop, 
 Arduino... • cutting edge • performance, 
 productivity, versatility
  2. ANGULAR https://angular.io https://github.com/angular/angular Values Apps users love to use Apps

    developers love to build A community where everyone 
 feels welcome
  3. E-Store search 4 <header>
 <a href="home.html">E-Store</a>
 </header>
 <aside>
 <a href="cart.html">


    4 <img src="cart.jpg">
 </a>
 </aside>
 <main>
 <div>
 <input type="text">
 <button>search</button>
 </div>
 <div id="products">
 <ul>
 <li>
 <a href="product1.html">
 <h3>Product Title</h3>
 <img src="product.jpg">
 </a>
 </li> <li>...</li>
 </ul>
 </div>
 </main> app my-store header search-bar product-list nav-bar product product product product x
  4. E-Store search 4 <header>
 <a href="home.html">E-Store</a>
 </header>
 <aside>
 <a href="cart.html">


    4 <img src="cart.jpg">
 </a>
 </aside>
 <main>
 <div>
 <input type="text">
 <button>search</button>
 </div>
 <div id="products">
 <ul>
 <li>
 <a href="product1.html">
 <h3>Product Title</h3>
 <img src="product.jpg">
 </a>
 </li> <li>...</li>
 </ul>
 </div>
 </main> app my-store header search-bar product-list nav-bar product product product product x
  5. Component Template </> Controller { } Directive { } Component

    </> + { } Service { } Style {CSS} Hi Angular! <h1> Hi {{ name }}!
 </h1> name = 'Angular'; h1 { color: red }
  6. Component Template </> Controller { } Directive { } Component

    </> + { } Service { } Style {CSS} Hi Angular! <h1> Hi {{ name }}!
 </h1> name = 'Angular'; h1 { color: red } Pipe {{ | }} | uppercase
 Hi ANGULAR!
  7. app my-store header search-bar product-list nav-bar product product product product

    x Communication Between Components ( output ) [ input ] shopping cart service inject
  8. JavaScript + Types TypeScript ES6 (ES-2015) JavaScript (ES5) • type

    checking
 string, number, boolean, any, Array<T> • custom types - interfaces • code help - intellisense • decorators • and more...