我试图在This Weaver创建一个超级简单的角度应用程序,但它无法正常工作。问题是什么?我已经找到了一个有角度的链接,我已经把所有东西都搞定了。为什么它不起作用?
答案 0 :(得分:1)
LiveWeave sucks use plunker. Here it is working on live weave but you have to refresh
script.js -
var app = angular.module("myApp", []);
app.controller('myCtrlr', ['$scope', function ($scope){
$scope.hello = "hello world";
}]);
index.html -
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<script data-require="angularjs@1.3.6" data-semver="1.3.6" src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.6/angular.min.js"></script>
<link rel="stylesheet" href="style.css" />
<script src="script.js"></script>
</head>
<body ng-controller="myCtrlr">
<h1>{{hello}}</h1>
</body>
</html>