dimanche 3 janvier 2021

Applying Design Patterns in Angular

I have a back button that let me navigate back to the previous page and I am wondering if it is possible to implement such feature using Desing Patterns? I think it may be implemented as a directive so that it can easily be integrated to a component that wants to use this feature.

Assume that there is a List component and when clicking a record in this list a Detail component is opened. Then by pressing the Back button on the Detail page the user is able to back to the previous List page. How can apply a suitable Desing Pattern (e.g. Memento or Command Pattern) to this scenario?

And, is it good practice to apply Desing Patterns all the possible scenario for Angular components?

Aucun commentaire:

Enregistrer un commentaire