-1

I am working on Nativescript Angular and i have a RadSideDrawer for iOS device only. When i install the app, login and click on the button for RadSideDrawer i receive an error that TypeError: sideDrawer.showDrawer is not a function. (In 'sideDrawer.showDrawer()', 'sideDrawer.showDrawer' is undefined) . However when i hit CTRL + S and the app restarts, the RadSideDrawer works fine. Any help is appreciated.

My code structure is similar to this sample project https://play.nativescript.org/?template=play-ng&id=ZyeGeF&v=3

Abdullah
  • 39
  • 5

1 Answers1

0

For debugging purposes, force an Angular change detection cycle beforehand. Maybe you are executing the side drawer function before the component is available.

But, could you give us the exact code—or excerpts—in your question so we can better aid you?

Diego
  • 192
  • 1
  • 12