in express.js when you will pass a value from controller to view, using jade (default in express) you set in controller:
response.render('templatename',{name:'Peter'});
so you can echo it on the view as:
#{name}
In Angular.js you put values you want to show in view to the $scope var, $scope.name = "Peter" and echo it on the view as: {{name}} So, maybe I can`t echo values from node.js directly to angular. then there is a way to echo values from node.js to an js file to be used as angular.js controller?
my target is pass values from node.js server side controllers to angular.js client side controllers
Thanks!
$scope
, and the display happens more or less automagically. – Dave Newton Jun 16 '15 at 17:48