Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Refer a typescript file outside of project directory

$
0
0

@abhibly wrote:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>