I'm trying to add Simpl5 javascript library to my gateway unsuccessfully. I've put SIPml-api.js and SIPml.js in webapp/content/scripts folder.
In .angular-cli.json I've update scripts array like this :
"scripts": [
"content/scripts/SIPml-api.js",
"content/scripts/SIPml.js"
]
I've then try to call SIPml in component like this :
import { Component, OnInit } from '@angular/core';
declare var SIPml: any;
.
ngOnInit() {
SIPml.setDebugLevel((window.localStorage && window.localStorage.getItem('org.doubango.expert.disable_debug') === 'true') ? 'error' : 'info');
}
I getting ERROR ReferenceError: SIPml is not defined in the console.
Can someone help please ?