Skip to content

Instantly share code, notes, and snippets.

@subudeepak
subudeepak / angular-loadscript-with-documentwrite.js
Last active May 5, 2020 03:16 — forked from endorama/angular-loadscript.js
Loading scripts on ngInclude (ng route) - Script loading directive
/**
* This module is a variant which supports document.write. If you need document.write use this instead
* Author: Deepak Subramanian @subudeepak(https://github.com/subudeepak)
* Distributed under MIT License
*/
/*global angular */
(function (ng) {
'use strict';
app.directive('script', function() {
return {