您当前的位置:主页 > 技术探讨 >
angularjs开始之旅
时间:2018-08-29 12:12 日记人:arlen.zhou
项目搭建:
需要环境 cnpm i -g angular-cli
创建新项目 ng new JustForTest
启动 ng serve
UI框架 ngx-bootstrap
cnpm install ngx-bootstrap --save
快速创建组件 :
ng g component nav
构建路由:
const rootRouterConfig : Routes = [
{path:"路径",component:组件名称},
{path:"page4",component:组件名称, children:[
{path:"路径",component:...},
{path:"路径",component:...}
] } ]
请求: https://www.jb51.net/article/139646.htm
参考文档: 组件 angular-cli https://segmentfault.com/a/1190000007176295?from=timeline&isappinstalled=1
路由 https://blog.csdn.net/u011127019/article/details/79115624
https://blog.csdn.net/kuangshp128/article/details/72626066/
插件资料:https://www.jianshu.com/p/48e5d02a2f88