Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

multiple nested bind template not working on Chrome App #5727

Closed
ceefour opened this issue Jan 10, 2014 · 2 comments
Closed

multiple nested bind template not working on Chrome App #5727

ceefour opened this issue Jan 10, 2014 · 2 comments

Comments

@ceefour
Copy link

ceefour commented Jan 10, 2014

Tested with AngularJS 1.2.6 and Chrome 31.0.1650.63 on Linux 64bit.

Given in main.js:

$scope.a = {b: {c: {d: 'halo'}}};

Templates below (in main.html view) work in Chrome as a website, but won't work (displays blank) when launched as Chrome app (probably same behavior as Chrome extension, but did not test) :

{{a.b.c.d}}
<span ng-bind-template="{{a.b.c.d}}">abcd</span>

I use this on window.html:

<body ng-app="app" ng-csp>

A workaround exists, which works both as website and as Chrome App:

{{(a.b).c.d}}

It seems that at least 3-level nesting triggers this behavior, so buggy syntaxes are:

{{a.b.c}}
{{a.b.c.d}}

while these always work:

{{a}}
{{a.b}}
@campersau
Copy link
Contributor

Looks like a duplicate of #5591 and #5592 which is already fixed with 3b1a4fe

@ceefour
Copy link
Author

ceefour commented Jan 10, 2014

@campersau Thank you ! I tried to Google it but I guess I didn't use the right keywords ^_^

@ceefour ceefour closed this as completed Jan 10, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants