SPA kodetime
This commit is contained in:
parent
b0523a9210
commit
6b3922eddc
4 changed files with 48 additions and 0 deletions
0
MVC/navn og epost/index.html
Normal file
0
MVC/navn og epost/index.html
Normal file
31
MVC/navn og epost/model.js
Normal file
31
MVC/navn og epost/model.js
Normal file
|
@ -0,0 +1,31 @@
|
|||
const model = {
|
||||
app: {
|
||||
page: 'search'
|
||||
},
|
||||
|
||||
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'},
|
||||
],
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue