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 support #12

Open
4 tasks done
sytzez opened this issue Nov 2, 2021 · 4 comments
Open
4 tasks done

Angular support #12

sytzez opened this issue Nov 2, 2021 · 4 comments

Comments

@sytzez
Copy link

sytzez commented Nov 2, 2021

Clear and concise description of the problem

It would be nice if the package came with an out-of-the-box Angular component, to make it easier and quicker to use in an Angular or Ionic project.

Suggested solution

I've already made a working Angular component. I would be willing to rewrite this so if fits with the main Atropos repo, and be available under atropos/angular.

Alternative

Alternatively I could keep maintaining my own package and keep it separate from the main one.

Additional context

No response

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Would you like to open a PR for this feature?

  • I'm willing to open a PR
@Josee9988
Copy link

"localhost/:1 Refused to apply style from 'http://localhost:4200/~atropos/atropos.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled."

image

@jnurse13
Copy link

import Atropos from 'src/../atropos/atropos';

ngAfterViewInit() {

const myAtropos = Atropos({
  el: '.my-atropos',

.....

this worked

@Josee9988
Copy link

image

I am still having the same issue.

Where should I use this constant that I just created in the afterview method because it appears unused?

I am just using atropos like this (right away without further modifications)
image

Thanks in advance

@jnurse13
Copy link

jnurse13 commented Nov 1, 2022

you don't need too - put it in a console log or just initiate

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

No branches or pull requests

3 participants