You need to sign in to do that
Don't have an account?
sesha boddapati
How to include angular js with lwc
Hi All,
Can you plaese help me this, How to include Angular js with Lwc..
Thanks, Sesha.
Can you plaese help me this, How to include Angular js with Lwc..
Thanks, Sesha.
import { loadScript } from 'lightning/platformResourceLoader';
import AngularResource from '@salesforce/resourceUrl/AngularResource ';
export default class ContactsComponent extends LightningElement {
renderedCallback() {
Promise.all([
loadScript(this, AngularResource )
])
.then(() => {
alert('Files loaded.');
})
.catch(error => {
alert(error.body.message);
});
}
}
In the above code, AngularResource is a static resource that contains angular.js file.