我一直在尝试做一些概念验证,并期待Plunker为{{40/10}}
表达式编写4
,但它从来没有这样做过。它出什么问题了?不过,我看到斯科特艾伦能够这样做。 这里是我的plunker链接:https://plnkr.co/edit/OTuxWEMmlWObMgGy9o2Z?p=preview为什么简单的Angular hello world不工作?
<!DOCTYPE html>
<html>
<head>
<script data-require="[email protected]*" data-semver="2.0.0"
src="https://code.angularjs.org/2.0.0-beta.0/angular2.min.js"></script>
<link rel="stylesheet" href="style.css" />
<script src="script.js"></script>
</head>
<body ng-app>
<h1>Hello Plunker!</h1>
{{40/10}}
</body>
</html>
你可以发布你指的Scott Allen例子的链接吗? – Ben
它在这个教程中:https://app.pluralsight.com/player?course=angularjs-get-started&author=scott-allen&name=angularjs-get-started-m1-introduction&clip=2&mode=live – Chanchal
你的东西有问题脚本src的URL,我试着用一个更老的Angular版本的例子,它工作正常 – Chara