I am a beginner at AngularJS, I tried the following code (from a tutorial) :
My view :
<div ng-app="app">
<div ng-controller="exempleCtrl">
HELLO {{name}}!
</div>
My controller :
var app = angular.module("app", []);
app.controller("exempleCtrl", function($scope) {
$scope.name = "World"
});
For a reason, I want to add some js code to my view that uses the value of "name", to do that I have to store it in a variable .. but this doesn't work
<script language="JAVASCRIPT">
var name = {{name}};
</script>
but I don't know how to do that .. help please :)