I have this snippet of code in my angular.json :
"scripts": [
"./node_modules/jquery/dist/jquery.min.js",
"./node_modules/jquery-ui-dist/jquery-ui.js",
"./node_modules/alertify.js/dist/js/alertify.js",
"./src/assets/jquery/zoomple/zoomple.js"
]
I have this code in my BaseComponent :
declare var $;
window["$"] = $;
window["jQuery"] = $;
Jquery works but zoomple (or others included plugins) doesn't work.
ngOnInit() {
this.http.get(
this.configurationService.configuration['api_url']+"/generator/component/entitiesList").subscribe(
data => {
this.entities = data;
}
);
$(document).ready(function() {
(<any> $('.loupe')).okzoom({
width: 200,
height: 150
});
});
}
** UPDATED **
Now the code compile but Plugin are not executed
Does someone can help me ?
Best regards