Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Directives Dynamically? #235

Open
merlinstardust opened this issue Aug 3, 2018 · 1 comment
Open

Create Directives Dynamically? #235

merlinstardust opened this issue Aug 3, 2018 · 1 comment

Comments

@merlinstardust
Copy link

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.

@jamesgibson14
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants