Skip to content

Extra dom elements created  #8

Open
@gitsome

Description

@gitsome

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions