0
I’m new to angular and I’m testing directives.
I have this scenario:
angular.module(module)
.directive(directive, function () {
return {
templateUrl:template
};
});
<ul class="mfb-component--br mfb-slidein" data-mfb-toggle="click" data-mfb-state="closed" ng-controller="tamboro.menu.quick.controller" >
<li class="mfb-component__wrap">
<a data-mfb-label="Fechar" class="mfb-component__button--main">
<i class="mfb-component__main-icon--resting ion-plus"></i>
<i class="mfb-component__main-icon--active ion-close"></i>
</a>
<ul class="mfb-component__list">
<li>
<a href="#/help" data-mfb-label="Ajuda" class="mfb-component__button--child">
<i class="mfb-component__child-icon ion-help"></i>
</a>
</li>
</ul>
</li>
</ul>
Would anyone know the way to make it work? = / Out of directive (putting in a .html) works
What are you trying to do? What’s the problem? Give more details.
– Jéf Bueno
So this is a menu -> https://github.com/nobitagit/ng-material-floating-button
– Fabricio Gonçalves
You should not return
template
within the directive instead oftemplateUrl
?– Tulio F.
I’m using templateUrl. template is an html
– Fabricio Gonçalves
I came back to this problem =/ com Hover everything works
– Fabricio Gonçalves