jonaszuberbuehler / ion-affix

A directive for Ionic framework for creating affix headers.
MIT License
57 stars 20 forks source link

Need Example for proper implementation in IONIC 3 #11

Closed Neotrixsx closed 7 years ago

Neotrixsx commented 7 years ago

I try lot of time to implement ion-affix plugin in my IONIC 3 App I follow all given instruction in document . But every time I get same error. Please help me.

Error:

ERROR Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'content' since it isn't a known property of 'ion-item'.
jonaszuberbuehler commented 7 years ago

Could you post your code, especially the template where you wanna use the ion-affix? Thx

On 12 October 2017 at 17:10:16, Neotrixs (notifications@github.com) wrote:

I try lot of time to implement ion-affix plugin in my IONIC 3 App I follow all given instruction in document . But every time I get same error. Please help me.

Error:

ERROR Error: Uncaught (in promise): Error: Template parse errors: Can't bind to 'content' since it isn't a known property of 'ion-item'.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jonaszuberbuehler/ion-affix/issues/11, or mute the thread https://github.com/notifications/unsubscribe-auth/ADouhvRiRVsgydUH3gv3QYvFszFziJTyks5sreWIgaJpZM4P2xnO .

Neotrixsx commented 7 years ago

I was using given example form document, `<ion-content padding #content>

Group 1 {{item}} Group 2 {{item}}

`

hparth commented 7 years ago

Make sure you have imported ionAffixModule in your module.ts file.

jonaszuberbuehler commented 7 years ago

As @hparth mentioned please make sure you import the module as described. The error message means that the content property coming from ion-affix is not known.

Neotrixsx commented 7 years ago

Thanks @hparth and @jonaszuberbuehler for your reply. After reinstall ion-affix its work fine. My application doesn't import ion-affix properly because of that it's not working.

jonaszuberbuehler commented 7 years ago

Ok, glad it works now. Closing issue.