Skip to content

Angular Implementation  #8

@ghost

Description

I tried to implement your library in an Angular 4 Project.
I installed the npm package as you suggested.

The issue is import Titanic from 'titanic-icons'; doesn't work. Error : [ts]Cannot find module 'titanic-icons'.

I tried import Titanic from 'titanic-icons/dist/js/titanic.min';
and

ngOnInit(): void {
this.titanic = new Titanic({
      hover: true, // auto animated on hover (default true)
      click: false  // auto animated on click/tap (default false)
    });
 }

Neither the import nor the compilation throw me any errors.
However the icon doesn't appear as expected.

Could you please provide Angular implementation example ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions