Hi
see https://stackblitz.com/edit/angular-3qktum?file=src/app/app.component.html
do you know, why the binding to the label in line 5 of app.component.html does not work?
I also tried label="{{ tab }}", but it doesn’t work.
Thank you
W
Save
Saving
wima
@wima
0
Reputation
3
Posts
397
Profile views
0
Followers
0
Following
Posts made by wima
-
binding to label in ons-tab does not work
-
Sample for createPopover with Angular 2+
Hi
Can anyone please post a sample for creating a popover in angular 2?
I don’t know, how it works with templates and reference it within the createPopover method.
in my.component.html I have this:<ons-page> <ons-button (click)="myClick()">Test</ons-button> </ons-page> <template id="popover.html"> <ons-popover #popover> This popover is defined as a template. </ons-popover> </template>
and in my.component.ts I have this:
public myClick() { ons.createPopover('popover.html')/*.then(function(popover) { alert(popover); })*/; }
I get errors like
ERROR Error: Uncaught (in promise): TypeError: Cannot read property ‘remove’ of undefinedThank you