Q
Q
Qairat2017-05-02 12:34:50
JavaScript
Qairat, 2017-05-02 12:34:50

How to convert to angular 2 with javascript?

Hello!
There is a code written in javascript-e.
Here is a link there .
Now it needs to be rewritten to angular2.
I was able to overwrite the first two functions.
Can't do the last one.
Here is a link to my angular2
Look please, can someone get it...
Thank you

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Stroykin, 2017-05-02
@Qairat

If you don't mind, here is the link

F
frontender, 2017-05-02
@frontender

I would make a component with this thing and on ngOnInit I would call the code that is in DOMContentLoaded

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question