Auth Service - Signup
Create user interface and add HTTPClient module in the tests of auth service.
We'll cover the following...
First, we’ll write a failing test for a service method to create new users, using the request and response stated in the API. Let’s create an interface for users to match our API’s request expectations. Feel free to add the -d
flag here if you’d like to see the dry run in action
ng g interface services/auth/user
The above command created a file. This is the expected terminal output:
CREATE src/app/services/auth/user.ts
Below is our updated code after running the above command. Use this code to make this lesson’s changes.
Note: Moving forward, we’ll display selective files in the widget, mainly the ones we need to interact with.
�PNG IHDR ?�~� pHYs ��~� fIDATH��WKLQ���̔�uG�� e�n�.6qcb�l?���D`�F#� Ku�F 1Qc� ��!���� ��C�P�|B?$���ܱ3����I&}��}�̽s�[*�ɀU�A� �K��yx�gY�Ajq��3L Š� ��˫�OD�4��3Ϗ:X�3��o�PJ�ğo#IH�a����,{>1/�2$�R AR]�)w��?�sZw^��q�Y�m_��e���r[8�^� �&p��-���A}c��- ������!����2_)E�)㊪j���v�m� �ZOi�g�nW�{<n8�P����o�=$8�K��9|$����@��v�P<�j�>�n.|�e2�a&�0aŸ����be�̀��C�fˤE%-{�ֺ��C��N��jXi�~c�C,t��T�����r �{� �L)s��V��6%�(�#ᤙ!�]��H�ҐH$R���^R�A�61(?Y舚�>���(Z����Qm�L2�K�ZIc�� ���̧�C��2!⅄ �(����"