I have searched the question/answers and it seems as if I should use a directive. I would however prefer to use the well tested ngInclude. The scenario is:
I am using ngInclude to fetch an external navigation bar(from a different site) and the returned html contains a login form, that points to a wrong url.
My ngInclude looks like this: <div ng-include = "''+API_HOST+'api/cms/navbar'">
The login form part of the navbar looks something like this
<form id="loginForm" class="form-inline ng-pristine ng-valid"
method="post"
action="/somewebapp/j_spring_security_check"
name="loginForm" target="_top"
I would like to modify the action attribute, to point to a different url.
Is there no other way than creating a directive to do that ? Thanks