Skip to main content

Posts

Showing posts from May, 2017

Angular 4

Building Blocks of Angular 4 There are 5 section cover in this blog .. module  component  template metadata data-binding Module module is a class with ng-module metadata, every angular app has at least one root module encapsulation of different similar functionalities  how to declare : @ngmodule({ //decorator     declareation :[AppComponent,TaskComponent],         //declare Component     imports :[BrowserModule,FormsModule,HttpModule], //import Module     providers:[], bootstrap:[AppComponent] //providing services to all modules component }) Component Angular 4 components are simply classes that are designated as a component with the help of a component decorator.  Every component has a defined template which can communicate with the code defined in the component class. So, let's take a close look at how components are structured. Metadata metadata describes how to process the class ,decorator is used to att