UNPKG

angular-nevera-generator

Version:

Yeoman AngularJS scaffold a webapp with Angular 1 written in ES6 (Babel), TypeScript through Webpack or SystemJS including tools Gulp 4, ESLint, Browsersync and Karma

22 lines (18 loc) 463 B
import {SHOW_ALL} from '../constants/TodoFilters'; import {initialTodo, Todo} from '../todos/todos'; class AppController { todos: Todo[]; filter: string; constructor() { this.todos = [initialTodo]; this.filter = SHOW_ALL; } } export const App: angular.IComponentOptions = { <% if (modules === 'systemjs') { -%> templateUrl: 'app/containers/App.html', <% } else { -%> template: require('./App.html'), <% } -%> controller: AppController };