qipp-services-template
v1.0.0
Published
Template service for Angular application.
Downloads
4
Readme
qipp-services-template
General
The loadTemplate factory is simple template supplier based upon the $templateCache service and the $http one.
Install
npm i qipp-services-template
Angular usage
The loadTemplate() method is a promise, either relying on the $http one if the needed template had never been loaded before, or on the $templateCache one if not:
loadTemplate('path/to/template').then(function (template) {
// Do something with the template.
})
Tools
Linting with StandardJS
Please refer to the JavaScript Standard Style for general rules.
npm run lint
Unit testing with Karma
npm test
Requirements
Angular
- angular 1.4.3
Licence
Released under the MIT license by qipp.