0
누군가이 방공망이 작동하지 않는 이유를 말해 줄 수 있습니까? Sample AngularJS on Plunker왜 Plunker Angular JS가 작동하지 않습니까?
HTML :
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.6/angular.min.js"></script>
<script src="script.js"></script>
</head>
<body ng-controller="MyCtrl">
<p>{{userData}}</p>
</body>
</html>
자바 스크립트 : 당신이 겨-응용 프로그램을 넣어 깜빡
var app = angular.module('myApp', []);
app.controller('MyCtrl', function ($scope) {
$scope.userData = {
name: 'Xavier',
age: 25
}
});
'ng-app'가 없습니다. –
내 생각에 내가 자러 가야 할 것 같아 ... 고맙습니다. – Mouss
어느 정도 속기가 있습니까? http://stackoverflow.com/questions/30687615/controller-function-in-angularjs/30687630#30687630 –