angular测试

点我!

{{ count }}

名字 :

Hello {{name}}

var ref = [

/公共组件依赖/
“xn.common”, /公共指令 xn.directive.common 、xn.filter.common、xn.service.common/
“xn.service.interceptor”, /拦截器/
“xn.directive.top”, /灯塔组件/
“xn.directive.loading”, /进度条/
/**/
“xn.tutorial.filter”,
“xn.tutorial.service”,
/当前项目页面/
“xn.page”,
/项目需求加载组件/
“ui.bootstrap”,
“ngImgCrop”,
“xn.directive.select”,
“xn.directive.attachment”,
“xn.directive.approval”, //审批流
“xn.directive.import”, //批量导入
“ui.sortable”,
“pascalprecht.translate” // 国际化
];
var app =angular.module(“xn”, ref);

var app = angular.module(‘app’, []);
app.controller(‘FirstController’,[" s c o p e " , f u n c t i o n ( scope",function( scope",function(scope) {
$scope.message = “hello”;

}]);

app.controller(‘MyController’,[" s c o p e " , f u n c t i o n ( scope", function( scope",function(scope){
$scope.person = {
name: ‘Ari Lerner’
};
}]);

{{ person }}

and their name:

{{ person.name }}

输出结果:
{"name":"Ari Lerner"}
and their name:
Ari Lerner

你可能感兴趣的:(笔记,前段)