3. Day outline
● Angular
○ Architecture
○ Application Structure
○ Setup
● Typescript
○ Features
○ TS to JS
○ Demo
● Movie App
○ Display list of movies
○ Deploy app to firebase
4.
5. What is Angular?
● Ground-up rewrite of AngularJS
● TypeScript-based open-source platform
● Component-based architecture
● Web, Mobile and Desktop
● Mobile native apps
8. ● Hierarchy of components as
it’s component-based
● "[ ]" for property binding,
● "( )" for event binding
● TypeScript
● Reactive programming
support using RxJS
Angular vs. AngularJS
● $scope, $rootScope or
controllers
● ng-model, ng-bind, etc
● ng-click, ng-change, etc
● JavaScript or ES6
● No support
13. Directives
Component : a directive with a template
Structural : a directive that changes DOM layout by adding or removing the elements
Attribute : a directive that change the appearance/behavior of an element
<movie> *ngIf ngModel
20. What is TypeScript?
● Open source programming language by Microsoft
● Strict superset of JavaScript
● Compatibility with JavaScript
● Designed for development of large applications.
25. “My favorite feature is that the type system
mimics the actual JS spec as well as the
common JS practices in the community very
closely, and so it feels very natural to use.”
Miško Hevery
29. Configuration files
● package.json
○ identifies npm package dependencies for the project.
● tsconfig.json
○ defines how the TypeScript compiler generates JavaScript from the
project's files.
● systemjs.config.js
○ provides information to a module loader about where to find application
modules, and registers all the necessary packages.
bit.ly/ng-config-systemjs