Add new post: creating an AngularJS reset field directive