Angularjs 角度ng控制器不显示输出
我启动AngularJs,当我在js文件中写入某些内容时,输出不显示Angularjs 角度ng控制器不显示输出,angularjs,Angularjs,我启动AngularJs,当我在js文件中写入某些内容时,输出不显示 html ng-app script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.3/angular.min.js" body ng-controller="simpleController" <br /> {{tags}} function simpleController($scope){ $scope.tags
html ng-app
script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.3/angular.min.js"
body ng-controller="simpleController"
<br />
{{tags}}
function simpleController($scope){
$scope.tags = [
{done: false, text: 'fist'}
];
}
{{tags}} is not updating when i make some change.
html-ng应用程序
script src=“//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.3/angular.min.js”
body ng controller=“simpleController”
{{tags}}
函数simpleController($scope){
$scope.tags=[
{完成:false,文本:'fist'}
];
}
当我做一些更改时,{tags}}没有更新。
请参考以下工作代码-
函数simpleController($scope){
$scope.tags=[
{
完成:错误,
文字:“拳头”
}
];
}
{{tags}}
没有任何解释,只有code-1。请向我们解释你在问题中寻找什么。花更多的时间关注你的问题,他们应该在那里帮助每个人。