Do I need to use bracket notation for defining the run() block? If i want to minify the javascript files even though run() block is not expecting the any parameters.
here is my code for run block
app.run(function () {
$(function () {
$(document).keydown(function (e) {
if((e.which || e.keyCode) == 116 || (e.keyCode == 82 && e.ctrlKey)){
e.preventDefault();
var path = $state.current.name;
var subpath = path.split(".");
if(subpath.length > 1) {
if (subpath[1] == 'list')
$state.reload();
}else
$state.reload();
}else {
return (e.which || e.keyCode) != 116;
}
});
});
});
any help will be appriciated.