I have been utilizing various plugins such as block-ui
, spectrum-colorpicker
, sass.js
, etc., in my Angular 2 project written in TypeScript.
Currently, I am loading these plugins directly in the index.html file. However, I would like to import them and only load them when needed. I have attempted to import them using
import * as [Name] from '[plugin]'
or import {default as [Name]} from '[plugin]'
, but it has not been successful.Can someone provide guidance on how I can properly import these plugins into my project? Thank you,