Add support for the form parameter in angularjs