ng-elastic
ng-elastic copied to clipboard
Text areas not expanding with using Lazy Loading in an Ionic app
Hi
My Ionic app utilises Lazy Loading which seems to stop the text areas from expanding.
To test, create a new Ionic app, setup ng-elastic as per instructions and it works as expected.
Then setup lazy loading and the textarea no longer expands.
To setup lazy loading I:
- deleted home page
- re-added home page via cli
- re-add textarea to home.html file
- removed references to home page from app.module.ts
- update the setting of root page in app.component.ts to be rootPage:any = HomePage;
Cheers Dan
I have lazy loading of my pages and I'm not sure if that's the reason but it doesn't work for me either. I noticed that the problem is when I use ionic lab
instead of ionic serve
though. With ionic serve it works as expected, with ionic lab the input is just frozen
It's working for me.
Did you load the module in your app.module.ts
and page.module.ts
too?
It's not working for me too.
@HugoHeneault I got a runtime error after adding ElasticModule to my HomePage.module.ts
Uncaught (in promise): Error: unexpected module 'ElasticModule' declared by the module 'HomePageModule'. Please add a @pipe/@directive/@component annotation.