16 lines
412 B
JavaScript
16 lines
412 B
JavaScript
|
app.directive('myAlert', ['config', function(config){
|
||
|
return {
|
||
|
templateUrl: config.rootPath+ 'templates/alert.html',
|
||
|
scope: {
|
||
|
message: "=",
|
||
|
title: "=",
|
||
|
visible: "="
|
||
|
},
|
||
|
link: function(scope){
|
||
|
scope.visible = false;
|
||
|
scope.dismiss = function(){
|
||
|
scope.visible = false;
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
}]);
|