Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import { loadStyle } from 'lightning/platformResourceLoader';
  2. import styles from '@salesforce/resourceUrl/prueba';
  3.  
  4. renderedCallback() {
  5. Promise.all([
  6. loadStyle(this, styles + "/main.css")
  7. ]).then(() => {
  8. console.log('Files loaded.');
  9. }).catch(error => {
  10. console.log("Error "+error.body.message);
  11. });
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement