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
17 lines (14 loc) • 368 B
JavaScript
var todoFilters = require('../constants/TodoFilters');
var todos = require('../todos/todos');
module.exports = {
<% if (modules === 'systemjs') { -%>
templateUrl: 'app/containers/App.html',
<% } else { -%>
template: require('./App.html'),
<% } -%>
controller: App
};
function App() {
this.todos = [todos.initialTodo];
this.filter = todoFilters.SHOW_ALL;
}