aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/webapp/app/vid/scripts/directives/messageViewer.js
blob: 8ff67fac188357f9908b9f0bbb3c57c18e5ad302 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"use strict";

appDS2.directive('messageViewer', function() {
    return {
        restrict : "E",
        templateUrl: 'app/vid/scripts/view-models/messageViewer.htm',
        scope: {
            primaryMessage:'@',
            icon:'@',
            secondaryMessage:'@',
            tryAgain:'&'
        },
        link: function(scope, elem, attrs) {
            scope.showTryAgain = angular.isDefined(attrs.tryAgain);
        }
    }
});