Monthly Archives: May 2016

add css to template Just write a service to add CSS and JS files to the <head> Here is a example service which is used to dynamically load CSS files.You can modify it easily to load JS files. use angular-css: Imho, … Continue reading

Posted in Angularjs, Uncategorized | Leave a comment

how to know the template exist or not? describe(‘The popup template’, function() { var $templateCache; beforeEach(inject(function($injector) { $templateCache = $injector.get(‘$templateCache’); }); it(‘should use a template that exists’, function() { // If you are using something such as chai expect($templateCache.get(‘your/template/url.html’)); // If you aren’t use an assertion library … Continue reading

Posted in Angularjs | Leave a comment