Ng-app不是元素'HTML'的有效属性 [英] Ng-app is not valid attribute of element 'HTML'
本文介绍了Ng-app不是元素'HTML'的有效属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<!DOCTYPE html>
< html ng-app = app xmlns = http://www.w3.org/1999/xhtml >
< head >
< title> < / title >
< / head >
< body>
< div> < / div >
< script src = Scripts / angular.min.js > < / script >
< / body >
< / html >
请帮帮我。
谢谢你
我尝试过:
发生错误d在这一行
< pre lang =c#>
< pre>< html ng-app =appxmlns =http://www.w3.org/1999/xhtml>
解决方案
由于您没有使用任何控制器,它将抛出错误
将应用程序名称设为空或向其添加模块和控制器。 />
< html ng-app = xmlns =http://www.w3.org/1999/xhtml>
<!DOCTYPE html>
<html ng-app="app" xmlns="http://www.w3.org/1999/xhtml">
<head >
<title></title>
</head>
<body>
<div></div>
<script src="Scripts/angular.min.js"></script>
</body>
</html>
please help me.
thank u
What I have tried:
error occured at this line <pre lang="c#"> <pre><html ng-app="app" xmlns="http://www.w3.org/1999/xhtml">
解决方案
Since you have not used any controller, it will throw the error
either make the app name as empty or add a module and controller to it.
<html ng-app="" xmlns="http://www.w3.org/1999/xhtml" >
这篇关于Ng-app不是元素'HTML'的有效属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文