Price : £ " + item.cost + "
");
/*
" + value1 + "Product code : " + value2 + "
"); */
};
$scope.showMaxQty = function (maxqty) {
if (maxqty != undefined && maxqty > 0) {
return maxqty;
} else {
return "";
}
}
}]);
function DialogController_CartDelivery($scope, $mdDialog) {
$scope.hide = function () {
$mdDialog.hide();
};
$scope.cancel = function () {
$mdDialog.cancel();
};
$scope.validateLogin = function (answer) {
$mdDialog.hide(answer);
};
$scope.forgotPassword = function (answer) {
$mdDialog.hide(answer);
};
}
app.directive('stringToNumber', function () {
return {
priority: 1, restrict: 'A', require: 'ngModel', link: function (scope, element, attr, ngModel) {
function toModel(value) {
return "" + value;
}
function toView(value) {
return parseInt(value);
}
ngModel.$formatters.push(toView);
ngModel.$parsers.push(toModel);
}
};
});