Durante il passaggio delle rotte. Come mantenere lo stato dell'applicazione così com'è? Ho osservato che la classe Angolare viene reinizializzata ogni volta che cambio scheda.Come mantenere i dati del modulo quando si cambiano le schede/i percorsi
Ad es. Plunker
import {Component, View, CORE_DIRECTIVES} from 'angular2/angular2'
@Component({
})
@View({
template: `
<input class="form-control" [value]="test"> </input>
<br>
{{test}}
`
})
export class SearchPage{
test = `Type something here go to inventory tab and comeback to search tab. Typed data will gone.
I observed that Angular class is reinitialize every time I switch tabs.`;
}
}