Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template parse error #13

Closed
chrisj74 opened this issue Dec 11, 2018 · 3 comments
Closed

Template parse error #13

chrisj74 opened this issue Dec 11, 2018 · 3 comments
Labels
inactivity No answer received within one week or more. invalid This doesn't seem right.

Comments

@chrisj74
Copy link

Hi,

Have added package via npm, included in app.module.ts and used the snippet from the example code.

I get the following error

`Error: Template parse errors:
Can't bind to 'spacer' since it isn't a known property of 'div'. ("rHtml]="category.categoryName" class="flex-grow">

  <div #spacer></div>
][spacer]="spacer">STUCK
` Using "@angular/core": "^6.1.9".

I have tried directly importing the directive, but still no luck.

Any help much appreciated.

Cheers

@CanKattwinkel
Copy link

Have you added the stickyThing directive? Since the spacer is an Input.

Working example:
https://stackblitz.com/edit/angular-z3itfx?file=src%2Fapp%2Fapp.component.html

@CanKattwinkel
Copy link

I'll close this, please re-open if you still see this error.

@ghost ghost added inactivity No answer received within one week or more. invalid This doesn't seem right. labels Nov 5, 2019
@scubafly
Copy link

scubafly commented Sep 8, 2021

Got the same issue. I see the working example but somehow that does not work in my app. Must be something wrong with the versions I use or so. I'm getting the exact same error.
Using angular core 7.2.16

I don't see the directive being added in the working example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactivity No answer received within one week or more. invalid This doesn't seem right.
Projects
None yet
Development

No branches or pull requests

3 participants