【发布时间】:2014-06-29 20:35:58
【问题描述】:
在我的 index.html 中,我定义了以下内容:
<html class="dark"
ng-app="app"
ng-controller="appController"
id="ng-app"
xmlns:ng="http://angularjs.org"
ng-app="optionalModuleName">
在我的代码中:
<a ui-sref="home.content({ content: 'overview' })"
ui-sref-active="current">
据我了解,某些版本的 IE 需要 xmlns:ng="http://angularjs.org
来识别不同的命名空间。
现在我也在使用 ui-router。那么我应该如何声明命名空间呢?
我假设xmlns:ui,但在那之后我应该放什么?
同样在 VS2013 中,它也是无效的。有没有办法告诉 VS2013 忽略它在 HTML 中看到的 ui-?
【问题讨论】:
标签: asp.net html angularjs visual-studio