小编Hyd*_*yde的帖子

如何在 ANGULAR 6 的多级延迟加载中设置路由器

我是 Angular 的新手,正在编写我的第一个Angular应用程序。我希望这个“应用程序”具有三种布局:Public、Mumber 和 Admin。我创建了这样的项目:

|-src
|-app
    |-public(module)
        |-home(module)
            |-pages(foler)
                |-index(component folder)
                    |-index.component.ts(like a controler include the selector of article-list component and product-list component, inject article service and product service)
            |-components
                |-article-list(component folder)
                    |-article-list.component.css
                    |-article-list.component.html
                    |-article-list.component.ts
                |-product-list(component folder)
                    |-product-list.component.css
                    |-product-list.component.html
                    |-product-list.component.ts
            |-home-routing.module.ts
            |-home.component.ts
            |-home.module.ts
        |-article(module)
            |-pages(folder)
                |-index(component folder)
                    |-index.component.ts(like a controler include the selector of article-list component, inject article service)
                |-list-by-category(component folder)
                    |-list-by-category.component.ts(like a controler loop category and include the selector of article-list component, inject article service)
                |-detail(component …
Run Code Online (Sandbox Code Playgroud)

angular6

4
推荐指数
1
解决办法
2403
查看次数

标签 统计

angular6 ×1