I'm trying to use Scrollify in my Angular 4 app. I'm supposed to initialize it using this script:
<script>
$(function() {
$.scrollify({
section: ".section-class-name",
sectionName: "section-name"
});
});
</script>
I know that the library depends on jquery
, which I already have in my angular-cli.json
file declared as so:
"scripts": [ "../node_modules/jquery/dist/jquery.min.js" ]
I want to use Scrollify only in one lazy-laded module, and so I would like to not have to delcare it as a global script like jquery
. Is there a way to do this?