Ng-Enter Angularjs

Ng-Enter Angularjs



Luckily, AngularJS gives you the ability to create your own directives and add them into your app. Below is a simple directive that you can add to your app that allows you to add ng-enter to elements in your partials. Pass it a function and watch as you hit enter and that function is executed flawlessly.

Show activity on this post. Use ng-submit and just wrap both inputs in separate form tags: />

Advertiser