News for hackers. Stuff that matters.
Re:Diving into AngularJS by visarga on Sunday April 21, 2013 @11:25PM (#5587600)
I too, tried to define a directive after the bootstrapping phase and couldn't figure out how.

I'd like to create a directive that would help me define directives. Sounds circular? I just want syntactic sugar to define 'components', in other words, to nicely package my code. I want to wrap together a piece of html, js and css under one name and invoke it as a HTML tag. That way I could better modularize my website. This needs to work in partials too.

What I don't like about Angular is that I's not easy to dynamically define/load stuff like directives and such. It all needs to be known beforehand, statically.

There are no comments on this comment yet.