angular-meteor icon indicating copy to clipboard operation
angular-meteor copied to clipboard

Can't use <div ng-controller="MyCtrl"> outside <div ui-view>

Open maximedubois opened this issue 11 years ago • 2 comments

If I use <div ng-controller="TestController">{{test}}</div> in index.html beside <div ui-view></div> and I declare my scope variable in my controller the value is never shown on the page.

maximedubois avatar Sep 05 '15 14:09 maximedubois

it seems like there's a conflict between angular and meteor using {{}}. If I use <span ng-bind="test"></span> it's working well..

maximedubois avatar Sep 05 '15 17:09 maximedubois

yes, as of today, html files are rendered by Blaze and not Angular and only ng.html files are rendered by Angular. Soon this will be changed in the new Meteor 1.2 release where there is a better separation, my plans are to make [email protected] support all html files by Angular. In the meantime you can keep using .ng.html or use this angular-meteor-platform package: https://github.com/planet-training/angular-meteor-platform

Urigo avatar Sep 05 '15 23:09 Urigo