mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +01:00
Merge remote-tracking branch 'refs/remotes/akveo/master'
This commit is contained in:
commit
5dba55f911
2 changed files with 8 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue