Two posts ago I wrote about Angular2 application and I showed how to add new component and service. This time I want to show you how to implement a service in Angular2 and call webApi from it. I decided to create login service in angular app which calls SignIn method from webApi (request via http post method). Ok, let’s start. I have login.component and login.service in my angular app. First we need to make sure if login service is imported in login.module.ts and if it is added to providers list. C# i...
Strona głównaDaj się poznać 2017
Daj się poznać 2017 2789 dni, 9 godzin, 32 minuty temu 31 pokaż kod licznika zwiń