1、当路由中不写controller的时候,controller写在对应的html表单中
2、若要写在路由中,如下
3、转到相应的路由(页面)
1、采用location服务
2、采用 transitionTo
4、含有导航标题的可以采用abstract:true,默认会先加载父页面
5、angularjs 代码的两种写法
1、模块化写法 将config,service,controller js写在一个js文件中,,每个模块只有一个js,以及所有的html页面
2、第二种写法 按照功能划分。比如有三个模块,那么三个模块的的config写在一个文件中config.js,三个模块的的service写在一个文件service.js中,三个模块的的controller写在一个文件controller.js中,