aurora.js
angular.
module('auroraAlert').
component('auroraAlert', {
templateUrl: '/static/js/app/aurora-alert/aurora-alert.template.html',
controller: ['$routeParams', 'Aurora',
function AuroraAlertController($routeParams, Aurora) {
var self = this;
self.alertQueue = [];
self.alert = function(message, type="warning"){
message = {message: message, type: type};
self.alertQueue.push(message);
};
self.alert("sreee");
}
]
});
Я пытаюсь присвоить аргументам значения по умолчанию: <b>function(message, type="warning")</b>
, который выдает ошибку при минимизации скрипта.
Как преодолеть это поведение?