These are chat archives for angular/angular-2-ionic-2

Apr 2015
Andrew Joslin
Apr 02 2015 17:40
@mhevery is there a way to know if an item has content, and get it?
if the developer provides my-initial-view (which could be any component, or perhaps just some HTML), I want to automatically push it to my view-stack for him.
view-stack's template would be something like:
<view-stack-item *for="#item in stack" [item]="item"></view-stack-item>
and view-stack-item is just a DynamicComponent that instantiate's item
yes, I could just wrap the <content> in its own component and use that to push to the view stack. But I don't want to do that if the content is empty.