Created
January 29, 2019 15:44
-
-
Save jakerb/6c2d2def2fd227e3b07b53fffb6a5de7 to your computer and use it in GitHub Desktop.
Unwrap template includes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Provide some Javascript to be included within your application. | |
* | |
* @link https://myappuccino.com/ | |
* @since 1.0.0 | |
* | |
* @package Appuccino | |
*/ | |
(function() { | |
if(typeof $appuccino !== 'undefined') { | |
$appuccino.application.module.module().directive('includeReplace', function () { | |
return { | |
require: 'ngInclude', | |
restrict: 'A', /* optional */ | |
link: function (scope, el, attrs) { | |
el.replaceWith(el.children()); | |
} | |
}; | |
}); | |
} | |
}(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ng-include src="app.app.base_url + 'partials/header.html'" include-replace></ng-include> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment