在我看来,我有:
<button ng-click="getPerson()">test</button>
<ul>
<li ng-repeat="person in persons">{{ person.name + ' - ' + person.username }}</li>
</ul>
Run Code Online (Sandbox Code Playgroud)
ul-part工作正常,但单击按钮时不调用getPerson()?警报未显示.
我的控制器:
app.controller('personsController', function ($scope, personsService) {
getPersons();
function getPersons() {
personsService.getPersons()
.success(function (persons) {
$scope.persons = persons;
})
.error(function (error) {
$scope.status = 'Error: ' + error.message;
});
}
function getPerson() {
alert('tst');
}
});
Run Code Online (Sandbox Code Playgroud)
难道我做错了什么?
如果我在.NET Framework 4.0上运行服务器.是否可以在其上运行ASP.NET vNext?或者是否需要更高的框架版本?