Monday 23 April 2018

Module in angular 2.

In this article, We will discuss about What is Module in angular 2.

Module is a collection of Components,Pipes and Services.

The class applied with @NgModule decorator function is called as Module.

Syntax : -
------------

@NgModule({
         declarations:["",...],
         imports:["",...],
         bootstrap:[...]
})

class className{}

platformbrowserDynamic().bootstrapmodule(className);

0 comments:

Post a Comment