I am new to angular. Can anyone say how can I add custom js file in angular template.
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.css']
})
UPDATED
i want to add the below code
$("#single-slider").owlCarousel({
navigation: true,
slideSpeed: 600,
autoPlay: 6000,
singleItem: true,
pagination: false,
navigationText: [
"<i class='fa fa-angle-left'></i>",
"<i class='fa fa-angle-right'></i>"
],
});
home.component.html.<script src="yoururl">and declare your varibale what you use.