Skip to content

Instantly share code, notes, and snippets.

@KamilLelonek
Last active August 29, 2015 14:09
Show Gist options
  • Save KamilLelonek/63ce3f0ae08b2c38326f to your computer and use it in GitHub Desktop.
Save KamilLelonek/63ce3f0ae08b2c38326f to your computer and use it in GitHub Desktop.
Resolving external partials by UI-router
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