ngBoilerplate+bootstrap -> navbar not showing right



我有这个ngboilerplate框架,我正在尝试构建一个应用程序。我真的只是刚起步,但似乎无法使Navbar具有合适的尺寸。好像Bootstrab JS和CSS未加载或正确编译。

现在看起来像一个大型容器,类似于Jumbotron。但是,如果我用通往其他引导实例的路径(特别是其CSS和JS)替换了编译JS-ES和LINS-ES的行,它可以很好地工作。

<!-- compiled CSS --><% styles.forEach( function ( file ) { %>
<link rel="stylesheet" type="text/css" href="<%= file %>" /><% }); %>
<!-- compiled JavaScript --><% scripts.forEach( function ( file ) { %>
<script type="text/javascript" src="<%= file %>"></script><% }); %>

不工作,但是

<link rel="stylesheet" type="text/css" href="path-to-bootstrap-css">
<script type="text/javascript" src="path-to-bootstrap-js"

这个显示很好。现在,我不确定是否或在哪里应该告诉grunt哪些文件对我很重要...我在build.config.js文件中尝试过,但是它不起作用。

在src/selly/main中。否则我有一个" @include to to to to to to to to to to to bootstrap/sille/bootstrap.less",在bootstrap中。

因此,作为结论,我的问题是我应该放在何处,以使Navbar起作用?

要重现我的错误/误解,可能会下载(git克隆https://github.com/ngbp/ngbp,将bootstrap更新为3.0.3,angular-bootstrap至0.7.0)并编译该项目。另外,添加一个Navbar如Bootstrap示例(http://getbootstrap.com/components/#navbar)中的index.html。

如果看起来不错,它可以正常工作。如果没有,它看起来都肿又大,那么您就在我的位置。

谢谢!

我看到了一个未式的页面,其中显示了顶部:

<% styles.forEach( function ( file ) { %> <% }); %> <% scripts.forEach( function ( file ) { %> <% }); %>

原来我正在研究..path/ng-boilerplate/ src /index.html代替.. path/ng-boilerplate/构建/index.html如读书文件所指示的。

最新更新