Hi,

you're using `this` instead of `$scope` inside the controller. So you can't 
access the properties without naming its controller using the controllerAs 
syntax.

A quickfix is changing the `this.entite = test;` to `$scope.entite = test;`.

This stackoverflow answer explains well the difference between `this` and 
`$scope`: 
http://stackoverflow.com/questions/11605917/this-vs-scope-in-angularjs-controllers
 
and todd has written an article about the new controllerAs 
syntax: http://toddmotto.com/digging-into-angulars-controller-as-syntax/

On Tuesday, September 9, 2014 4:00:49 PM UTC-4, Xavier Artot wrote:
>
> Hi,
> I reading a lot how can i display some data with the template.
> But doesn't work ?
> My js:
> https://gist.github.com/xavierartot/807f84984cc986ed02ea
>
> HTML:
> https://gist.github.com/xavierartot/7e9ba2239e961981d921
>
> Thanks
>

-- 
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