Skip to content

How to import Parallel Components in my Angular Project #7

Answered by Th3S4mur41
MikeKronewald asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @MikeKronewald,
great question 👍

You got the first part right...
You need to import the module first like you did for the progressBar. E.g.:

import { ProgressBar } from  @atos-parallel/components/dist/components/progressBar;

Since Parallel components are native web components, there is no need to import them in your ngModule.
You need however to tell Angular, that you are also using native web components, so that it doesn't complain about an unknown element in your template.
To do this, you just need to add CUSTOM_ELEMENTS_SCHEMA to each ngModule that uses Parallel components...
This would look like this:

import { CUSTOM_ELEMENTS_SCHEMA } from @angular/core;
import { ProgressBar } from  @

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by MikeKronewald
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants