Sunday, June 18, 2017

What Angular 2 offers

  1. Dynamic HTML
  2. Powerful templates
  3. Fast rendering
  4. HTTP services
  5. Component encapsulation
  6. Form & input handling
  7. Event handling
  8. Routing
  9. Latest JavaScript standards

What's new from Angular 1:

  • No more controllers and scope
  • Components /reusable code
  • Reduced learning curve
  • TypeScript & ES2015/ES6
  • Better mobile support
  • RxJS & Observables

What is TypeScript

  • A strict superset of JavaScript with added features
  • Maintained by Microsoft
  • Optional static typing
  • Class-based object-oriented programming
  • Resembles languages like Java and C/C++

Components is the main way to build and specify elements and logic on the page

  • Basic building block of the UI. An Angular application is a tree of Angular components.
  • Decorators allow us to mark a class as an Angular component & provide metadata that determines how the component should be processed, instantiated and used at runtime.


  • Services are used for reusable services to share between components throughout an application.
  • Refactoring data access to a separate service keeps the component lean and focused on supporting the view
  • Services are invariably asynchronous. We can return data as a promise or an observable using RxJS.

Angular 2 Installation Methods

  • From scratch
  • Using the quickstart
  • Angular-CLI Tool: npm install -g angular-cli
  • Requirements:Node.js, NPM, Git

No comments:

Post a Comment