javascript - Calling service values directly into directive -


i need call directive populate data using ng-repeat service data.

the desired output be

<ul>days <li>monday</li> <li>tuesday</li> ... <ul> <ul>month <li>january</li> <li>february</li> ... <ul> 

i created jsfiddle.

http://jsfiddle.net/alaksandarjesus/upzayfv1/8/

upon on directive not called in jsfiddle data "i directive" displaying in localhost. running jsfiddle betterview of request.

you should try restrict directive "element":

return {         restrict: 'e',         template:"adsf"     } 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -