Joined September 2012
·

Benjamin Roth

Peachyweb
·
Belgium
·
·
·

Posted to reusable conditionals in angular over 1 year ago

@Kadajett

Services are the most common way to proceed. Actually I generally create a service then use the service in my filter.

Using filters spares a lot of:
- inject service
- attach to controller
- call method in view

I've never seen anyone using filters this way either but I'd recomment it: it feels natural

Actually I'm working on videos for egghead.io maybe it would be published there.

Achievements
176 Karma
2,622 Total ProTip Views