How to mock http requests like Angular does as web


#1

Hi guys! Is it possible to mock http requests data in NS + Angular?

I’m mean, I want to make it into the application, not in only tests.
I think it’s not, how can I suggest it to NS team? :nativescript::a::eyes:

I see it in Angular as web using in-memory-web-api feature.


#2

I don’t see why you can’t use the same package in Nativescript app?


#3

I thought before testing someone could tell me that it is a feature independent of LocalStorage or something specific to the web platform.

I mean, I think using memory data is different on the mobile platform. :eyes: