Front End. Presentation Layer. UI (User Interface) User <==> Data access layer

Similar documents
Angular 2: What s new? Jonas Bandi, IvoryCode GmbH

ANGULAR 2.X,4.X + TYPESRCIPT by Sindhu

Angular 2 Programming

Frontend UI Training. Whats App :

Angular 2 and TypeScript Web Application Development

"Charting the Course... Comprehensive Angular. Course Summary

One Framework. Angular

Comprehensive AngularJS Programming (5 Days)

Arjen de Blok. Senior Technical Consultant bij ICT Groep ( sinds 1995 Programmeren sinds 1990 Technologiën. Links

Angular 2 and TypeScript Web Application Development

"Charting the Course... Comprehensive Angular 5. Course Summary

Chapter 1 - Development Setup of Angular

"Charting the Course... Comprehensive Angular 6 Course Summary

Course Outline. ProTech Professional Technical Services, Inc. Comprehensive Angular 7 Course Summary. Description

IN4MATX 133: User Interface Software

Angular 4 Syllabus. Module 1: Introduction. Module 2: AngularJS to Angular 4. Module 3: Introduction to Typescript

P a g e 1. Danish Technological Institute. Scripting and Web Languages Online Course k Scripting and Web Languages

FRONT END WEB. {< Course Details >}

Sample Copy. Not For Distribution.

Advanced React JS + Redux Development

Angular 4 Training Course Content

ANGULAR2 OVERVIEW. The Big Picture. Getting Started. Modules and Components. Declarative Template Syntax. Forms

Index. Elad Elrom 2016 E. Elrom, Pro MEAN Stack Development, DOI /

Lab 1 - Introduction to Angular

Advance Mobile& Web Application development using Angular and Native Script

TypeScript coding JavaScript without the pain

Full Stack Web Developer

Presented by. Dheepa Iyer Managing Consultant. Commissioned for. Reston SharePoint User Group. SharePoint Framework. May 2017

Single Page Applications using AngularJS

Angular 2. Useful links. Allen Holub 2-1

Introduction to. Angular. Prof. Dr.-Ing. Thomas Wiedemann.

Angular2. Bernhard Niedermayer. Software Development playing around with Angular2 since alpha.

PHP WITH ANGULAR CURRICULUM. What you will Be Able to Achieve During This Course

Welcome. Quick Introductions

WebStorm, intelligent IDE for JavaScript development

a Very Short Introduction to AngularJS

Ten interesting features of Google s Angular Project

INTRODUCTION TO IONIC 2

Full Stack boot camp

55249: Developing with the SharePoint Framework Duration: 05 days

Practical Course: Web Development Angular JS Part I Winter Semester 2016/17. Juliane Franze

Building Your own Widget with ArcGIS API for JavaScript

Making Sling Grunt Or How to Integrate Modern Front-End Development with Sling. Philip Hornig (Publicis Pixelpark), Michael Sunaric (Netcentric)

Course 1: Microsoft Professional Orientation: Front-End Web Developer

By the end of this Angular 6 tutorial, you'll learn by building a real world example application:

Deep Dive on How ArcGIS API for JavaScript Widgets Were Built

Introduction to the SharePoint Framework Bob German Principal Architect - BlueMetal. An Insight company

Full Stack Web Developer

Finally JavaScript Is Easy, with Oracle JET! Geertjan Wielenga Product Manager Oracle Developer Tools

"Charting the Course... MOC A: Developing with the SharePoint Framework. Course Summary

Client Side MVC with Backbone & Rails. Tom

PHP + ANGULAR4 CURRICULUM 6 WEEKS

International Research Journal of Engineering and Technology (IRJET) e-issn: Volume: 05 Issue: 06 June p-issn:

AngularJS Fundamentals

Introduction to TypeScript

Before proceeding with this tutorial, you should have a basic understanding of HTML, CSS, JavaScript, TypeScript, and Document Object Model (DOM).

Hands on Angular Framework

Enterprise Web Development

D3 + Angular JS = Visual Awesomesauce

Frontend Frameworks. SWE 432, Fall 2016 Design and Implementation of Software for the Web

Integrating Angular with ASP.NET Core RESTful Services. Dan Wahlin

Web UI. Survey of Front End Technologies. Web Challenges and Constraints. Desktop and mobile devices. Highly variable runtime environment

Open Source Library Developer & IT Pro

Index. Bower, 133, 352 bower.json file, 376 Bundling files, 157

Tools. SWE 432, Fall Design and Implementation of Software for the Web

Getting Started with ReactJS

Modern and Responsive Mobile-enabled Web Applications

The magic behind. Angular 2+

CREATE SASSY WEB PARTS. Developer Guide to SASS usage in SPFx

Web Development for Dinosaurs An Introduction to Modern Web Development

Production Registration System 2.0

Introduction to Using NPM scripts as a Build Tool. 1. 1

Stencil: The Time for Vanilla Web Components has Arrived

J, K, L. Node.js require() method, 403 package.json, 401 streams functionality, 401 task() method, 401 use strict statement, 403

welcome to BOILERCAMP HOW TO WEB DEV

Jesse Palmer Corinna Cohn Mike Giambalvo Craig Nishina MANNING. Foreword by Brad Green, Google. Sample Chapter

Angular from the Beginning

Treating Framework Fatigue With JavaScript

High Performance Single Page Application with Vue.js

Modern SharePoint and Office 365 Development

Vue.js Developer friendly, Fast and Versatile

Pro JavaScript. Development. Coding, Capabilities, and Tooling. Den Odell. Apress"

npm install [<name> [<name>...]] [--save --save-dev --save-optional]

One language to rule them all: TypeScript. Gil Fink CEO and Senior Consultant, sparxys

JavaScript Frameworks

Static Webpage Development

Web development using PHP & MySQL with HTML5, CSS, JavaScript

Decoupled Drupal with Angular

Building mobile app using Cordova and AngularJS, common practices. Goran Kopevski

Is your JavaScript ready for the Enterprise? What does that even mean?

JavaScript and MVC Frameworks FRONT-END ENGINEERING

Nagaraju Bende

Advance AngularJS (with.net)

TypeScript. Types. CS144: Web Applications

Web Premium- Advanced UI Development Course. Duration: 08 Months. [Classroom and Online] ISO 9001:2015 CERTIFIED

Demystifying Angular 2. SPAs for the Web of Tomorrow

Learn to Build Awesome Apps with Angular 2

,

All India Council For Research & Training

TypeScript. TypeScript. RxJS

Transcription:

Angular 2 S1ngS1ng

Front End UI (User Interface) User <==> Data access layer Presentation Layer

Architecture Conventional VS SPA

Angular 1 Framework! Framework! Framework! MVVM (MV*) Modulization Two-way data binding Sementic tag Dependency injection Test friendly

Angular 1 VS Angular 2 Angular 1 Directives Controllers Routing $http $filter.factory,.service JavaScript Angular 2 Less Directives Components Routing HTTP Pipes Services TypeScript

Directives

Diff with Angular1 - Basic Angular 1 //.html <body ng-controller="todocontroller as td"> <h3>{{td.todo.title}}</h3> </body> //.js (function () { angular.module('myapp').controller('todocontroller', todocontroller); function todocontroller () { var td = this; td.todo = {id:1, title:'learn Angular'}; } })(); Angular 2 //.html <todo-list></todo-list> //.ts import {Component} from '@angular/core'; @Component({ selector: 'todo-list', template: '<h3>{{todo.title}}</h3>' }); export class todocomponent { todo = {id:1, title:'learn Angular'}; }

Understand Data-binding Interpolation One-way Binding Component Event Binding Two-way Binding DOM

Diff with Angular 1 - Directives Angular 1 <ul> <li ng-repeat="todo in td.todos limitto:2:0"> {{todo.title}} </li> </ul> Angualr 2 <ul> <li *ngfor="let todo of todos splice:0:2"> {{todo.title}} </li> </ul> <div ng-if="td.todos.length"> You have {{td.todos.length}} todos :) </div> <div *ngif="todos.length"> You have {{todos.length}} todos :) </div>

Diff with Angular 1 - Built-in directives Angular 1 ng-app, ng-controller ng-class, ng-href, ng-switch ng-click, ng-focus, ng-blur, ng-keyup ng-repeat, ng-if, ng-switch-when ng-model = name Angular 2 bootstrap(), @Component() [ng-class], [href],[ng-switch] (click), (focus), (blur), (keyup) *ngfor, *ngif, *ngswitchwhen [(name)]

Languages: Angular 1 vs Angualr 2 Angular 1 JavaScript (Dart, CoffeeScript) Angular 2 TypeScript (JavaScript, Dart)

TypeScript

TS Code import { cat } from 'animal'; export class Cat { constructor() {} catmeow() { return '=^o^='; } }

What is TS? Superset of JS JS(ES5) < ES6 < TypeScript Static Language Compile to JS Strongly Typed Optional type declaration Features ES6 Arrow Function

JS: the Good and Bad Good Compatibility Libraries +++ EZ to start Debug tool Bad Dynamic typing No Modularity Verbose, IIFE Debug

EZ TS ES6 + Extra Features (optional) Free Tools!

Types Strongly Typed any (object) void boolean number string type[]

(arg) => arg.touppercase(); Arrow function From: ES6 function (arg) { return arg.touppercase(); }

export class TodoList { Class constructor (todoservice) { return todoservice.get(); } }

@Component({ selector: todoapp, Decorators Syntatic Sugar templateurl:./todo.html, style: `.todo {color: purple} ` })

Import import { Component } from @angular/core ; import { TodoList} from./todolist. component ;

Back to Angular 2

Form

What is form

Form Template-Driven Half-half Model-Driven

Templatedriven Easy, straight-forward HTML Input Elements Data-binding Error Message TS Action

In.html Componentdriven Complex, hard to understand Input elemnts Control binding In.ts Life cycle Validation Error messages

In.html Half-half Intermediate, easy to understand Input elements Control binding Error messages In.ts Controls Form Validation

Services

Services Example Export class as service @Injectable() Inject service into component constructor() or @Inject Provider: container of services Recommend single initiation Add to boostrap

Diff with Angular 1 Angular 1 Factories Services Providers Constants Values Angular 2 Class

Router, HTTP

Router Built in ROUTER_PROVIDERS, ROUTER_DIRECTIVES, RouterConfig <router-outlet>, [routerlink] HTTP HTTP_PROVIDER, Http.map(),.json().subscribe()

Eco-system

Tools All Free :) Scaffold Code Test CSS Framework Deploy

Scaffold Basic structure, boilerplate Yeoman Angular-seed

Code Have fun coding :) Webstorm Visual Studio Code (recommend) Sublime Text Atom

Package Control Dependency management NPM Bower

Task Runner Run em all Grunt Gulp NPM Script

Test Framework and runner Jasmine Karma Protractor (Selenium Server, webdriver-manager)

CSS Framework EZ way to build stunning page Bootstrap Except IE8 or Opera Android and ios Angular Material (alpha) n-1 Materialize Chrome 35+, FF 31+, Safari 7+, IE 10+ Foundation Except IE7 & IE8

Deploy Pack, :ship-it: Concat, Minify Tools gulp angular-cli webpack

Hello CLI Angular-CLI FREE!!! XD

Lecturer: S1ngS1ng Panelists: Lian Liu, Jerry Yang Host: Shi H. Much Obliged Registration: Xiao Liu Boardcast: Hao, 8Xuan, Karina Rang Editor: Bohua Tian Bosses: J.Z., R.Z., J.L., T.S. Platform: bittiger.io

and.. Thank YOU! GLHF coding :) In Seatle? Add lun to be in our local discussion group Full-stack? Front-end? Add xiao4742 to be in our discussion group Keep in Touch! GitHub: S1ngS1ng LinkedIn: liuxing0514 WeChat: 1025583636