I have this myjs.js file
function slide_down(id) {
$('#' + id).slideToggle();
}
function open_team_info(id) {
$('#team-info-' + id).css("visibility", "visible");
$('#team-info-' + id).css("opacity", "1");
}
function close_team_info(id) {
$('#team-info-' + id).css("visibility", "hidden");
$('#team-info-' + id).css("opacity", "0");
}
I want to use this functions in terms of
(click)=a_function('someID')
in HTML
How can I include this functions in my component from myjs.js file?
In other words, is there any relevant solution as we do in plain HTML project like:
<script src="myjs.js"></script>
PS: I got 5 days with Angular so any Hint or suggestion will do