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

Angular 16 support #167

Open
irg1008 opened this issue Sep 26, 2023 · 4 comments · May be fixed by #206
Open

Angular 16 support #167

irg1008 opened this issue Sep 26, 2023 · 4 comments · May be fixed by #206

Comments

@irg1008
Copy link

irg1008 commented Sep 26, 2023

Is there any plan to support Angular v16? The Ivy compiler doesn't work anymore

@justin-schroeder
Copy link
Member

Happy to accept a PR.

@WingSMC WingSMC linked a pull request Jun 19, 2024 that will close this issue
@KS2SoftwareGmbH
Copy link

Do we have an update on this by chance?

@justin-schroeder
Copy link
Member

@KS2SoftwareGmbH there is a PR open here for 17 support. I’m not at all an angular dev, so Id love to see someone else help review it:

#206

If that works I can merge and publish

@WingSMC
Copy link

WingSMC commented Jul 1, 2024

@KS2SoftwareGmbH

Do we have an update on this by chance?

I wrote that PR, but here is quick tip for v16:

Create a new directive in your project:

import {
  AfterViewInit,
  Directive,
  ElementRef,
  Input,
} from "@angular/core";
import autoAnimate, { AutoAnimateOptions } from '@formkit/auto-animate';

@Directive({
  selector: "[auto-animate]",
  standalone: true,
})
export class AutoAnimateDirective implements AfterViewInit {
  @Input() options: Partial<AutoAnimateOptions> = {};

  constructor(private el: ElementRef) {}

  ngAfterViewInit(): void {
    autoAnimate(this.el.nativeElement, this.options)
  }
}

And then you can just use it as any other directive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants