I have jquery script. I want to load those scripts after the
`router.navigate`.
I tried with this code author component
this.zone.run(() => this.router.navigate(['/author']))
In other book component in `ngOnit` I am loading those scripts
ngOnit(){ this.jquryscripts(); }
I have added my scripts here
jquryscripts(){ // jquey scripts }
I tried with zones and also by adding activated route in constructor not
working!!
After adding those scripts inside the `index.html` like this
<script> jquery scripts </scripts>
If I use `window.location.reload()` then my `jquery` scripts are loading!!!
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.