onTaskAdd ( event ) ConclusionĪngular gives us some really awesome ways to handle forms but there are some gotchas when you're trying to move from a submitting to a server to a single page application approach. In this simple demo, we are creating a new task with the value from the input and calling a service to save the task. When that happens we will call a method onTaskAdd and pass in the event. You will notice that we have an event handler for when the user hits the enter key. The first thing we have is the template for the add task form and it looks something like this. If you want to check out the project you can grab it on Github.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |