I'm trying to call a (working) web api using angularjs2. But it says 'Collection not found'. It seems straightforward but still doesn't work. Please tell me what I am doing wrong here.
-
2Welcome to Stackoverflow. This question doesn't contain a lot of information. Please check the help menu how to ask good questions. Please add more information (code) about what you tried, where you failed, what error messages you got, ...Günter Zöchbauer– Günter Zöchbauer2016-04-12 15:38:15 +00:00Commented Apr 12, 2016 at 15:38
-
2Please come up with code. show us what you have done so far.micronyks– micronyks2016-04-12 15:38:31 +00:00Commented Apr 12, 2016 at 15:38
-
Did you get anywhere with this?Rodney– Rodney2016-11-09 21:08:05 +00:00Commented Nov 9, 2016 at 21:08
Add a comment
|
1 Answer
Are you is the InMemoryDataService? If so, try commenting it out.
I had a similar issue calling my WebAPI. In the end I had to comment out the InMemoryDataService - as soon as I did this then the error went away and I was able to hit my WebAPI: AngularJS 2 : Getting data from json file not working