Skip to content

Commit c8d8ce3

Browse files
committed
Version bump 0.7.0-beta.0
1 parent 8ebe589 commit c8d8ce3

File tree

4 files changed

+29
-32
lines changed

4 files changed

+29
-32
lines changed

app/apps/todo/todo-app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import "@angular-wave/angular.ts";
1+
import { angular } from "@angular-wave/angular.ts";
22
import TodoController from "./todo-ctl";
33

44
/**
@@ -7,4 +7,4 @@ import TodoController from "./todo-ctl";
77
* Its a great way to inject custom DOM behaviour into your server-rendered views.
88
*/
99

10-
window.angular.module("todo", []).controller("TodoCtrl", TodoController);
10+
angular.module("todo", []).controller("TodoCtrl", TodoController);

app/apps/todo/todo-ctl.js

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1-
import ToDoList from "./todo-list";
1+
import Todo from "./todo";
22

3-
export default class TodoController extends ToDoList {}
3+
export default class TodoController {
4+
constructor() {
5+
/** @type {Todo[]} */
6+
this.tasks = [
7+
new Todo("Learn AngularTS"),
8+
new Todo("Build an AngularTS app"),
9+
];
10+
}
11+
12+
/**
13+
* @param {String} task
14+
* @return {void}
15+
*/
16+
add(task) {
17+
this.tasks.push(new Todo(task));
18+
}
19+
20+
/**
21+
* Delete all finished tasks
22+
* @return {void}
23+
*/
24+
archive() {
25+
this.tasks = this.tasks.filter((task) => !task.done);
26+
}
27+
}

app/apps/todo/todo-list.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"homepage": "https://github.com/Angular-Wave/angular-seed#readme",
2828
"dependencies": {
29-
"@angular-wave/angular.ts": "0.6.6",
29+
"@angular-wave/angular.ts": "0.7.0-beta.0",
3030
"@capacitor/camera": "^6.1.2",
3131
"@capacitor/core": "latest",
3232
"@capacitor/filesystem": "^6.0.2",

0 commit comments

Comments
 (0)