pierreavn / angular-tabler-icons

Tabler Icons components library for your Angular applications
https://www.npmjs.com/package/angular-tabler-icons
MIT License
24 stars 2 forks source link

Angular 13 unsupported #14

Closed eddiepineapples closed 2 years ago

eddiepineapples commented 2 years ago

Any chance of supporting Angular 13?

pierreavn commented 2 years ago

Hi,

Thank you for reporting this issue. I'm working on it and keep you in touch when Angular 13 support is ready.

Regards

pierreavn commented 2 years ago

I've just deployed a new package version with Angular 13 support, can you give it a try?

npm install angular-tabler-icons@angular-tabler-icons@1.53.1

or

yarn add angular-tabler-icons@1.53.1
eddiepineapples commented 2 years ago

Thanks, this worked for me in 13.1.2 🎉

Some notes while implementing:

pierreavn commented 2 years ago

Perfect!

About your notes:

import { Component, Input } from '@angular/core'

@Component({
  selector: 'ti',
  template: `<i-tabler [name]="name"></i-tabler>`
})
export class TablerIconComponent {
  @Input() name!: string;
}

I you see other things, do not hesitate to contribute to the package with Pull Requests :)