December 2017
Beginner
372 pages
10h 32m
English
As was the case in our Angular web application, whenever we create a service, we need to provide that service to the module, or a component to consume. In NativeScript applications, the concept remains the same. If we do not provide the service, then the Angular NgModule will not be able to refer to the service and provide the instance to the respective components.
The following is the code from the app.module file with reference to trello.service:
import { TrelloService } from './services/trello.service';....providers:[TrelloService],In the app.module file, you will have noticed another import statement that would not be there in an Angular web application, as shown in the following ...
Read now
Unlock full access