Sha256: 8f0ba9ec2eabdd97f9ab820a836d4aa87828cb18ca345503b13ef2d2123af686

Contents?: true

Size: 402 Bytes

Versions: 2

Compression:

Stored size: 402 Bytes

Contents

/**
 * This directive is responsible to render a URL for an action
 */
app.directive('url', function() {
  return {
    restrict: 'EA',
    scope: {
      action: '=',
      example: '@'
    },
    templateUrl: 'views/directives/url.html',
    link: function(scope, element, attrs) {
      scope.showExample = scope.example == 'example' || scope.example == 'true' || 'example' in attrs;
    }
  };
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
praxis-0.20.0 lib/api_browser/app/js/directives/url.js
praxis-0.19.0 lib/api_browser/app/js/directives/url.js