angular-scriptloader
1.0.0 • Public • Published angular-scriptloader
Script loader for Angular. Inject scripts and returns a promise. Won't inject the same script twice.
NPM
npm i angular-scriptloader
Setup
angular.module('yourApp', [
'nb.scriptloader'
]);
Service
Loading a script.
$scriptLoader.load('/example.js')
.then(function() {
});
Loading scripts concurrently.
$q.all([$scriptLoader.load('/example.js'), $scriptLoader.load('/example2.js')])
.then(function() {
});
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
1.0.0 | 7 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
1.0.0 | 7 | |
Package Sidebar
Install
npm i angular-scriptloader
Weekly Downloads