Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { loadStyle } from 'lightning/platformResourceLoader';
- import styles from '@salesforce/resourceUrl/prueba';
- renderedCallback() {
- Promise.all([
- loadStyle(this, styles + "/main.css")
- ]).then(() => {
- console.log('Files loaded.');
- }).catch(error => {
- console.log("Error "+error.body.message);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement