angular-httpclient-app
angular-httpclient-app copied to clipboard
In the html of employee create for the button click the model is not getting passed
Hi Digamber,
Your content are very good and it was really good stuff. I made a lot of attempt with db.json but it didn't worked for me. Anyways one suggestion in employee-create componeent.html
<div class="form-group">
<button class="btn btn-success btn-lg btn-block" (click)="addEmployee(employeeDetails)">Create Employee</button>
</div>
In the code in Git Hub employeeDetails is missing. So i got error that parameter is expected hence i added the same.
Also , i tried the step but my db.json file was not getting created. Anyway i used my API.
Be safe and take care.