Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
label: "Save the world",
completed: false
}];
name: string = 'John';
addTodo(label: string) {
this.todos.push({
label,
completed: false
});
}
toggleCompletion(todo: Todo) {
todo.completed = !todo.completed;
}
}
bootstrapWorkerApp(TodoApp)
.catch(err => console.error(err));
import './polyfills';
import { bootstrapWorkerApp } from '@angular/platform-browser-dynamic';
import { App } from './app/app';
bootstrapWorkerApp(App, []);