CulturalMe/meteor-slingshot

Create Directives Dynamically?

Opened this issue · 1 comments

Is it possible to create directives dynamically?

I am creating a bucket for each user and so I need to create a directive for each user's bucket.

I have successfully implemented this. I am storing the settings in a mongo collection, then I pass them into a function that creates a new directive. If something changes in the settings I just need to run delete Slingshot._directives[directiveName] and then create it again.