$IonicPopup.show


#1

I want to set DOB dynamically .when popup is load the Date is assign.
like
template:’’ contain input with id ,type date , ng-model=data.model

var myPopup = $ionicPopup.show({
template:
’’,
title: ‘Update’,
subTitle: ‘Update DOB’,
scope: $scope,
buttons: [
{
text: ‘Cancel’
}, {
text: ‘Update’,
type: ‘button-positive’,
onTap: function (e) {
if (!$scope.data.model) {
document.getElementById(‘userdateOfBirth’).setAttribute(“style”,“background-color: red;”);
e.preventDefault();
}
}
)};