Angular Single Service
1. providedIn
property of the @Injectable()
to "root"
.
2. Include the service in the AppModule
or in a module that is only imported by the AppModule
https://angular.io/guide/singleton-services
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Angular Dynamic mat-menu
- 765
- 0
- AngularMaterial
NetCore : webApi + angular + angular Material
mat-menu : https://material.angular.io/components/menu/overview
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Angular 口罩map
來貢獻一下,順便試試OpenLayers : https://openlayers.org/
source : https://data.gov.tw/dataset/116285
https://github.com/kiang/pharmacies 感謝前輩提供藥局(經緯度) api
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Angular Route
Angular Service
Service : https://angular.io/guide/architecture-services
將服務拿來使用公用,Property、Fun
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1