level 3
ng-app="myApp"//这个地方最好不要是ng-app=""
var app = angular.module('myApp', []);
app.controller('firstController', function($scope) {
$scope.name = "John Doe";
});
你试一下。
2016年08月01日 10点08分
3
level 11
Controller 沒有 inject到module
2016年08月05日 13点08分
4
level 1
你这个是引用路径问题,在../../ 前面在加个../
2017年04月01日 06点04分
6
level 5
ng-controller="FirstController"
2017年06月29日 13点06分
10
level 5
angular.module("myApp",[]).controller("FirstController",["$scope",function($scope){$scope.name="张三"}])
2017年06月29日 13点06分
11