Closed kevincaradant closed 8 years ago
Hi Kevin, By header you mean navbar? Which component is not having ripples?
Yes sorry it's the navbar ;) Mhh for example, I have this in my navbar, is it possible to ripples it like in your example in the demo ?
<nav class="navbar navbar-inverse navbar-static-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" ng-init="langCtrl.navCollapsed = true" ng-click="langCtrl.navCollapsed = !langCtrl.navCollapsed">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" ui-sref="home">Brand</a>
</div>
<div class="collapse navbar-collapse" ng-class="!langCtrl.navCollapsed && 'in'">
<ul class="nav navbar-nav">
<li ui-sref-active="active" ng-click="langCtrl.navCollapsed=true">
<a ui-sref="home"><i class="material-icons md-18">home</i></a>
</li>
<li ui-sref-active="active" ng-click="langCtrl.navCollapsed=true">
<a ui-sref="page1">Page 1</a>
</li>
<li ui-sref-active="active" ng-click="langCtrl.navCollapsed=true">
<a ui-sref="page2">Page 2</a>
</li>
<li ui-sref-active="active" ng-click="langCtrl.navCollapsed=true">
<a ui-sref="page3">Page 3</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right lang">
<li class="lang"><a href="" ng-click="langCtrl.changeLanguageTo('fr')" ng-class="{ selected: langCtrl.getLanguage()==='fr'}">FR</a></li>
<li><a href="" ng-click="langCtrl.changeLanguageTo('en')" ng-class="{ selected: langCtrl.getLanguage()==='en'}">EN</a></li>
</ul>
</div>
</div>
</nav>
Edit: I tried a lot of things but it's like my ripples.js or css was not loaded. But it's the case :/. Even when I took your example and paste it in my project, I haven't the ripples. Do you see something wrong in y imports ?
I would try an other version with npm but it's seems there is only one version 0.4.0 available. If you need more code or something else. Feel free to ask me ;)
By "component" I was referring to checkbox radio etc... You mean your menu items itself doesn't have the effect? I'll take a look at it once I'm free. In the meantime it'll be very helpfull if you can reproduce this in the JSFiddle template mentioned here so that I can play with it
Yes the ul/li url in the header must have the ripple effects and it's seems I don't have them :/
It's more simple maybe if you play with my repo: https://github.com/kevincaradant/web-template-webpack
Thank you to check ;).
OK my bad, I don't add the attributes abm-component="" on navbar component :/. It's was just that since the begin. Thank you :)
Hi
I try to add the material design on my bootstrap. This is my import:
And my css imports:
My angular module:
I get this error:
What do I have forgot ? Thank you
Edit: I fixed the problem by a import of angular-messages
NEW problem: I haven't any ripples on the header menu :/