This presentation has been prepared by Oleksii Prohonnyi for internal Angular.js training to improve skills of newbies in JS/Angular.
Part 1 (Introduction): http://www.slideshare.net/oprohonnyi/dive-into-angular-part-1-introduction
Part 2 (Architecture): http://www.slideshare.net/oprohonnyi/dive-into-angular-part-2-architecture
Part 3 (Performance): http://www.slideshare.net/oprohonnyi/dive-into-angular-part-3-performance
Part 5 (Experience): https://www.slideshare.net/oprohonnyi/dive-into-angular-part-5-experience
6. BUILD ANGULAR 2 APP
0. Install Node.js and npm.
1. Create and configure the project.
2. Create your application.
3. Create a component and add it to your application.
4. Start up your application.
5. Define the web page that hosts the application.
6. Build and run the application.
Download example: github.com
See more: angular.io
11. ARCHITECTURE
The framework consists of several cooperating libraries, some of
them core and some optional.
The eight main building blocks of an Angular 2 application:
– Modules
– Components
– Templates
– Metadata
– Data binding
– Directives
– Services
– Dependency injection
See more: angular.io
14. MODULE
Every Angular app has at least one module, the root module,
conventionally named AppModule.
An Angular module, whether a root or feature, is a class with an
@NgModule decorator.
NgModule is a decorator function that takes a single metadata
object whose properties describe the module (declarations,
exports, imports, providers, bootstrap).
17. COMPONENT
A component controls a patch of screen real estate that we could
call a view.
We define a component's application logic — what it does to
support the view — inside a class.
The class interacts with the view through an API of properties
and methods.
21. TEMPLATE
We define a component's view with its companion template.
A template is a form of HTML that tells Angular how to render the
component.
23. DATA BINDING
Angular supports data binding, a mechanism for coordinating
parts of a template with parts of a component.
There are four forms of data binding syntax. Each form has a
direction — to the DOM, from the DOM, or in both directions:
24. DATA BINDING
Two-way data binding is an important fourth form that combines
property and event binding in a single notation, using the
ngModel directive.
26. SERVICE
Service is a broad category encompassing any value, function, or
feature that our application needs.
Almost anything can be a service. A service is typically a class
with a narrow, well-defined purpose. It should do something
specific and do it well.
51. HOME TASK
Main idea: migrate existing application on a new version of
Angular.js framework.
Technical details:
– Component structure
– Component router
– TypeScript/EcmaScript 6
– Readme with installation instructions