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

jsFileLocation #7

Closed
jojoaddison opened this issue Jun 8, 2016 · 2 comments
Closed

jsFileLocation #7

jojoaddison opened this issue Jun 8, 2016 · 2 comments

Comments

@jojoaddison
Copy link

Hello,

Is this the location to the rs-plugin/js/jquery.themepunch.revolution.js file?
How does angular-revolution find the rs-plugin?
How does angular-revolution initiate the rs-plugin?

Thanks for your kind response.

@Karnith
Copy link
Owner

Karnith commented Jun 16, 2016

Hi @jojoaddison

the rs-plugin needs to be loaded before the angular directive is loaded. The file structure isn't important in this case.

this line:
https://github.com/Karnith/angular-revolution/blob/master/src/angular-revolution.js#L68

is what initiates the plugins method .revolution(options) that is available once the rs-plugin is loaded on the site, hence why the rs-plugin needs to be loaded before the directive.

hope this helps.

@jojoaddison
Copy link
Author

Hi @Karnith
Thanks for your kind response.
I've been able to successfully implement your directive.
Regards.

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