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 Implementation #8

Open
ghost opened this issue Aug 31, 2017 · 1 comment
Open

Angular Implementation #8

ghost opened this issue Aug 31, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 31, 2017

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 ?

@slipperypenguin
Copy link

slipperypenguin commented Sep 18, 2017

Having a similar issue using React.

I noticed in the package.json the main file isn't included in the ~/dist folder. From the line "main": "dist/index.html"

I tried converting the source over to a React component, but having all sorts of TypeError issues.

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

No branches or pull requests

1 participant