U
U
Umid2017-09-30 10:07:52
Angular
Umid, 2017-09-30 10:07:52

What's wrong with the slider, or why doesn't its functionality work when connected to Angular 2?

Firework!
There was a problem with the slider, or rather, its connection to the angular project.
Under the slider I created a separate component.
59cf4160716c8178541462.png
In systemjs.config.js I specified the path to the slider and connected it to the slider component (first screen).
59cf41d06e237178292965.png
In the html file of the slider component, I wrote the following:
59cf4219dff2a483609855.png
The slider script works, but only during initialization. Those. the necessary blocks, controllers, arrows appear. But the functionality does not work, the buttons do not respond, etc.
59cf4586e4e81864924641.png If you need to see something else, then ss ...
I would also like to know your opinion on the organization of the project, in which I already managed to mess up and what should have been done differently.
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Zuev, 2017-09-30
@DarCKoder

Firework!
Try to write somewhere in styles

carousel {
  display: block;
}

or :hostif the styles inside the component

O
ozknemoy, 2017-09-30
@ozknemoy

It is necessary / better to use a slider for the second angular. when there is experience, then you can try to write wrapper directives yourself, but for me this is a waste of time. it's easier to find a ready-made plugin. and finish the styles for yourself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question