29 lines
541 B
JavaScript
29 lines
541 B
JavaScript
const model = {
|
|
app: {
|
|
pages: [],
|
|
page: 'search',
|
|
loggedInUserId: null,
|
|
},
|
|
inputs : {
|
|
search: {
|
|
text: '',
|
|
},
|
|
createNew: {
|
|
name: '',
|
|
email: '',
|
|
},
|
|
delete: {
|
|
areYouSure: false,
|
|
personId: null,
|
|
},
|
|
edit: {
|
|
personId: null,
|
|
name: '',
|
|
email: '',
|
|
},
|
|
},
|
|
// felles data
|
|
people: [
|
|
{ id: 1, name: 'Per', email: 'per@mail.com'},
|
|
],
|
|
} |