sweetp/dashboard

View on GitHub
app/scripts/dashboardApp/common/spErrorList.directive.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

angular.module('dashboardApp')
    .directive('spErrorList', function () {
        return {
            restrict: 'E',
            scope:true,
            transclude: true,
            templateUrl: 'scripts/dashboardApp/common/spErrorList.template.html',
            link:function (scope, element, attrs) {
                scope.errorMessage = attrs.errorMessage;
            }
        };
    });