Additional debugging information

To get better understanding on what is changing what ng-state supports state messages or actionType. In order to set additional debugging information you need to pass an object as a third parameter to store.update method.

 addTodo(item: TodoModel) {
    this.store.update(state => {
        state.push(fromJS(item));
    }, { message: "Item Added" })
}

Complete message would look like:

'${statePath} - {message || actionType}'

Demo

Last updated