Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra dom elements created #8

Open
gitsome opened this issue Oct 28, 2014 · 1 comment
Open

Extra dom elements created #8

gitsome opened this issue Oct 28, 2014 · 1 comment

Comments

@gitsome
Copy link

gitsome commented Oct 28, 2014

Here is the example:
http://jsfiddle.net/HB7LU/7721/

And screenshot:
screen shot 2014-10-28 at 9 25 12 am

The template within the recursive directive (gt-view) looks like this:

template: [
     '<div class="contents">',
          '<div class="gt-view-content">',
              '<h1>{{view.title}}</h1>',
          '</div>',
          '<div class="gt-view-child-container" ng-if="view.childView">',
              '<gt-view view="view.childView"></gt-view>',
          '</div>',
      '</div>',
].join('')

So regardless if childView is populated in the model, I am getting another gt-view rendered
Ideas?

@grtjn
Copy link

grtjn commented Sep 5, 2016

Your fiddle uses angular 1.0.1. It works better with a more up to date angular version, like 1.4.8..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants