$scope.model = {
title: undefined,
url: undefined,
}
if (opts.model) {
$scope.model = opts.model
}
$scope.submit = () => {
if ($scope.urlForm.$valid) {
$mdDialog.hide({
opts: opts,
model: $scope.model,
});
}
}
$scope.delete = () => {
$mdDialog.hide({
delete: true,
opts: opts,
model: $scope.model,
});
}