But the problem that in debuger result is: 

   1. x: undefined

on my breakpoint here: var x = $scope.mydata;
after this initialization: <div ng-app="app" ng-controller="appCtrl" 
ng-init="mydata=5">

 

> Hi Dennis,
>
> Ah Ok, just keep in mind that this is not the optimal solution, it’s a 
> quick-fix to get you going!
>
> <div ng-controller='myController' ng-init='mydata="test"'>
>    <p>mydata contains: {{mydata}}</p>
> </div>
>
> Is that enough to get you going?
> Regards
> Sander
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to