I would print a string with Angular variables.
<script>
var app = angular.module('monApp',[]);
app.controller('Controleur',function($scope){$scope.infos={
"prenom": "Jean",
"nom": "Dupont",
"dateNaissance": new Date(1991,11,1)
};
}
</script>
I would like to print Hello Jean Dupont born on "1991-11-30T23:00:00.000" I have tried many ways to print finded on web but no result.
<body data-ng-app="monApp" class ="ng-scope">
<div data-ng-controller="Controleur" class ="ng-scope" ><p>Hello {{prenom}} {{scope.infos[1], born on {{scope.infos[2]}}</p></div>
</body></html>