Angular
AngularJS Component详解
我们将在这一章中详细的探究一下component组件的使用方式。在AngularJS中,Component比diective更适合于基于组件的开发形式。先来看一个比较简单的Component事例。heroDetail.js在heroDetail.js中,我们声明heroDetail的component,这里要注意在index.html中以横杠分离展示的标签,在js代码中需要使用驼峰标示展示。
angularjs表达式中添加过滤器-lowercase
html结构
angularjs表达式中添加过滤器-uppercase
html结构
angularjs外部文件中的控制器使用
html结构