Skip to content

Comment on Classy: Cleaner class-based controllers for AngularJSparent

Comments

I would go with writing directives over using global scope in general, though it's more time consuming to me.

But I need some filters to be "global" and some to be "local". I need to call some in different modules, while some are useful only in one particular module.

I haven't found out how to do this yet. Not fixing it until it breaks, even if that means I'll have to re-write parts of the app.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.