html code:
<form action="{{url}}">
<input type="submit" class="btn btn-info" ng-
click="goToProdPage()" value="Resume">
</form>
Angular Code:
$scope.goToProdPage = function(){
if(id){
$scope.url = "#/"+id+"/cpq";
console.log("done "+id);
$state.go("cpq");
}
}
Please ignore the id because i put only half code. I already used $(document.body).append(form); and it solved the issue but after adding it now its show bellow error on console
angular.js:14362 ReferenceError: form is not defined at b.$scope.findUser.$scope.goToProdPage (login.js:44) at fn (eval at compile (angular.js:15197), :4:156) at e (angular.js:26808) at b.$eval (angular.js:18017) at b.$apply (angular.js:18117) at HTMLInputElement. (angular.js:26813) at dg (angular.js:3617) at HTMLInputElement.d (angular.js:3605)