0

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.

3
  • 2
    Welcome 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, ... Commented Apr 12, 2016 at 15:38
  • 2
    Please come up with code. show us what you have done so far. Commented Apr 12, 2016 at 15:38
  • Did you get anywhere with this? Commented Nov 9, 2016 at 21:08

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.