File tree Expand file tree Collapse file tree 4 files changed +29
-32
lines changed
Expand file tree Collapse file tree 4 files changed +29
-32
lines changed Original file line number Diff line number Diff line change 1- import "@angular-wave/angular.ts" ;
1+ import { angular } from "@angular-wave/angular.ts" ;
22import 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 ) ;
Original file line number Diff line number Diff line change 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+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments