Hi,
I use components and in it propertys of own models.
When I change the route I want to know the property items are manipulated
or not.
(In that case there should be a warning like "You want to save changes?")
My focus is on *how to detect changes of the model object?*
Frank
What I have and use looks like...
my-model.ts
export class MyModel{myId: string,name:string,team:teamMember[] constructur
() { this.team = [];}}
my-app.component.ts
import{MyModel}from'@core/models/my-model';
@Component({...})
export class MyApp{
myModel: MyModel;
// here I want to detect changes of myModel(e.G.at OnClose() or OnDestroy())
Thanks for help!
Frank
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.