mean stack - passing value from server.js to html page -
function puts(error, stdout, stderr) { console.log(stdout) if(error){ console.log("error") } else{ result="success"; console.log("success"); } } exec("ping localhost", puts); //this ui page <div class="panel panel-default" ng-init="showplatform1()"> <div class="panel-heading"> <p class="panel-title"> platforms detail show 1 information</p> </div> <div class="panel-body"> <form> <div class="form-group"> <!-- <label class="form-control">platformname: {{ platform.platformname }}</label> --> <label class="form-control">{{result}}</label> <!-- <label class="form-control">serverhostname: {{ platform.serverhostname }}</label> --> <a href="#/platforms/{{platform.serverhostname}}/show" class="btn btn-info" > show 2 </a> <a href="#/platforms" class="btn btn-default"> cancel</a> </div> </form> <div> <div>
//i working mean stack.i completly new area.i have created function pings ip , shows result.now want display "result" in ui.i not being able route varible.can suggest ways solve it.
Comments
Post a Comment