Fizer Khan Fizer Khan - 2 years ago 220
Javascript Question

ng-action does not add action attribute in the form

I want to have dynamic action attribute in the form. I have a code

<form ng-action="/users/{{}}">

Angular does replaces
with the actual value, but it does not add
attribute with the new value. How do i fix this?

I also tried with

<form action="/users/{{}}"></form>

It does working in Angular
, but not in higher version

  1. JSFiddle with angular version

  2. JSFiddle with angular version

I also tried with angular version
, it does not work.

Answer Source

There is no directive called ng-action in Angular

refer Angular DOCS

<form action="{{'/users/' + }}">

You need to add above tag for that to work

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download