Angular之RouterModule的forRoot與forChild

Angular 提供了一種方式來把服務提供商從模塊中分離出來,以便模塊既能夠帶着 ide providers  被根模塊導入,也能夠不帶  providers  被子模塊導入。 區別: `forRoot` creates a module that contains all the directives, the given routes, and the router service itsel
相關文章
相關標籤/搜索