Angular 2 - Using Shared Service

后端 未结 3 1601
清歌不尽
清歌不尽 2020-11-29 09:36

Looks like shared services is the best practice to solve many situations such as communication among components or as replacement of the old $rootscope concept of angular 1.

3条回答
  •  悲&欢浪女
    2020-11-29 10:08

    In addition to your requirement and its solution, you can consider using Facade + Shared Services. I have a small project here: https://github.com/cmandamiento/angular-architecture-base

提交回复
热议问题