Merge remote-tracking branch 'refs/remotes/akveo/master'

This commit is contained in:
David Francis 2016-06-02 19:02:47 -04:00
commit 5dba55f911
2 changed files with 8 additions and 1 deletions

View file

@ -36,6 +36,13 @@ import {layoutPaths} from './theme/theme.constants';
component: Pages, component: Pages,
useAsDefault: true useAsDefault: true
}, },
// handle any non-registered route
// and simply redirects back to dashboard page
// you can specify any customer 404 page while it's not built in ito ng2-admin
{
path: '/**',
redirectTo: ['Pages']
}
]) ])
export class App { export class App {

View file

@ -33,7 +33,7 @@ export class Todo {
addToDoItem($event) { addToDoItem($event) {
if ($event.which === 1 || $event.which === 13) { if (($event.which === 1 || $event.which === 13) && this.newTodoText.trim() != '') {
this.todoList.unshift({ this.todoList.unshift({
text: this.newTodoText, text: this.newTodoText,