angular2-registration-login-example | Angular 2/5 User Registration and Login Example | Command Line Interface library
kandi X-RAY | angular2-registration-login-example Summary
kandi X-RAY | angular2-registration-login-example Summary
Angular 2/5 User Registration and Login Example
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of angular2-registration-login-example
angular2-registration-login-example Key Features
angular2-registration-login-example Examples and Code Snippets
Community Discussions
Trending Discussions on angular2-registration-login-example
QUESTION
I have been trying to post mock data using Angular2. I have tried the following links today but I was not successful.
https://www.beyondjava.net/blog/mocking-http-services-with-angular-generically/
Below links are good but I could not make use of it
http://embed.plnkr.co/9luTng/?show=preview
In the above link there is fake-backend.ts file as in app/_helpers/fake-backend.ts
the fake-backend I have included as in app.module.ts but how to use it?
So I want to SignUp using data request data like below:-
...ANSWER
Answered 2017-Oct-09 at 18:42There is a spyon mechanism available in angular and you can use that.
Below are the steps you need to follow to mock them.
inject the service, component, directive to the test bed of angular test.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install angular2-registration-login-example
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page