angularJs之template指令

template: 如果我们只需要在ng-view 中插入简单的HTML 内容,则使用该参数: .when('/computers',{template:'这是电脑分类页面'}) templateUrl: 如果我们只需要在ng-view 中插入HTML 模板文件,则使用该参数: $routeProvider.when('/computers', { templateUrl: 'views/comp
相关文章
相关标签/搜索