I have a Web App And Mobile App Which is currently in this folder structure
Mobile app
node_modules
Src
Web app
node_modules
Src
Since both mobile and web app use the same api for the http calls i created a new folder called shared and placed the API Services and referred them in my Mobile app.Like This
Mobile app
node_modules
Src
Web app
node_modules
Src
Shared
Services
LoginService.ts
Since my login service has import { Injectable } from ‘@angular/core’; and import { Http, Response, Headers, RequestOptions } from ‘@angular/http’; .I get the following error when i load my app Cannot find module ‘@angular/core’.
Can Somebody please tell me is it possible to use shared api services in my ionic2 app which is outside of the project directory.Thank You