i have a problem with material md dialog. This is a codepen (http://codepen.io/anon/pen/EyxyXj) of my application. When i open the dialog, and then i click on "save", i create a card. Why data in my input form are not save in the card? I think there are some problems with scope. Can anyone help me?
.then(function(answer) {
questList.allsQ.push({
titolo: questList.titolo ,
capitolo: questList.capitolo,
descrizione: questList.descrizione,
importo: questList.importo,
data: questList.data
});
questList.titolo = '';
questList.capitolo = '';
questList.descrizione = '';
questList.importo = '';
questList.data = '';
}
The function "push" works, but all the properties are undefined after I clicked save. Thank you everyone.