Sha256: 364e9c56e5236fa1746f779c73867eb0cd4e9caccbd0d772f3b38352dea6aa42

Contents?: true

Size: 501 Bytes

Versions: 3

Compression:

Stored size: 501 Bytes

Contents

(function (angular) {
  "use strict";

  angular.module('ac.alerts', [])
    .directive('acAlerts', [function () {
      return {
        restrict: 'E',
        replace: true,
        scope: '=',
        templateUrl: '/assets/tablo_connect/ng_app/modules/alerts/templates/alerts.html',
        controller: ['$scope', function ($scope) {
          $scope.closeAlert = function (index) {
            $scope.alerts.messages.splice(index, 1);
          };
        }]
      };
    }]);

})(window.angular);

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tablo_connect-0.0.4 app/assets/javascripts/tablo_connect/ng_app/modules/alerts/directives/alerts_directive.js
tablo_connect-0.0.3 app/assets/javascripts/tablo_connect/ng_app/modules/alerts/directives/alerts_directive.js
tablo_connect-0.0.2 app/assets/javascripts/tablo_connect/ng_app/modules/alerts/directives/alerts_directive.js