Focus directive, Enter keyup is create
Another improvement we can make for our form is, to make it so that the input is focused
when we open the form, you'll notice up you have to actually click into the input to get focused there.
That's kind of annoying, because when you click the form I want to type start typing
straight away but I can't until I move my mouse over and then click.
We can achieve that with a with a custom directive actually.
Let's just locally register a new directive
Click to load comments...