I'm trying to create a directive main custom select component, which use different types of data. e.g. Country data, Options data, etc.
The thing is that I don't know what is the 'Angular way' to do that, since I'm wondering if the data should be in another file (using scope or not?), and then rendering them somehow from the directive. If someone can bring some light on that, would be super helpful and I'd be very appreciative! Thanks a lot!!
Have a look at this multiselect dropdown directive I wrote. IMO the best way to learn angular directives is just to start messing around writing your own. This is also a good article.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With