Last active
August 29, 2015 14:09
-
-
Save KamilLelonek/63ce3f0ae08b2c38326f to your computer and use it in GitHub Desktop.
Resolving external partials by UI-router
This file contains hidden or 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
angular.module('StudentHunter.ExtensionsModule').factory 'AssetsPartialsLoader', | |
['$http', '$injector', 'SecurityConstants', ($http, $injector, SecurityConstants) -> | |
load: -> | |
$http.get("#{SecurityConstants.assetsHost}/templates/partials.html").then (response) -> | |
$injector.get('$compile') response.data | |
response | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment