rework api
This commit is contained in:
parent
6abb868c6b
commit
9e8dc6998d
14 changed files with 830 additions and 345 deletions
|
|
@ -84,7 +84,7 @@ var Page = {
|
|||
}
|
||||
};
|
||||
|
||||
var Demo = m.component({
|
||||
var Demo = {
|
||||
//controller
|
||||
controller: function() {
|
||||
var pages = Page.list();
|
||||
|
|
@ -105,7 +105,7 @@ var Demo = m.component({
|
|||
m("button", {onclick: ctrl.rotate}, "Rotate links")
|
||||
]);
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
//initialize
|
||||
|
|
@ -124,7 +124,7 @@ var Page = {
|
|||
}
|
||||
};
|
||||
|
||||
var Demo = m.component({
|
||||
var Demo = {
|
||||
//controller
|
||||
controller: function() {
|
||||
var pages = Page.list();
|
||||
|
|
@ -145,7 +145,7 @@ var Demo = m.component({
|
|||
m("button", {onclick: ctrl.rotate}, "Rotate links")
|
||||
]);
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
//initialize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue