I make a site with Angular 2 and will add a JavaScript file to the component. This script must render the height of some images equal to the height of the window of the browser.
How could I add this script to the component?
The solutions I found on the internet are this:
import './home.component.js';
But it's not what I need! I need this in my home.component.ts file:
home.component.ts
@Component({ templateUrl: './home.component.html', styleUrls: ['./home.component.scss'], jsUrls: ['./home.component.js'] })
or something...
In my site I use Angular CLI and TypeScript. You could find my project on GitHub - WatchFriends/Web[^]
See question:
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)