Sha256: d022af2ef763f9d783685d10c238eb278d92f69d2440f627b2dd3177a87e0765

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 Bytes

Contents

angular.module('EssayApp.directives').directive 'ngLoadFromPath', [ '$http', ($http) ->
  restrict: 'A'
  scope: true
  link: (scope, element, attrs) ->
    result_key = attrs.loadAs || 'result'
    scope[result_key] = undefined
    link = attrs.ngLoadFromPath
    if link?.length > 0
      $http.get(link).then (responce)->
        scope[result_key] = responce?.data
]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/assets/javascripts/app/directives/ng-show-remote-check.js.coffee