I have some code and I'm having issues with the css which is not targetting when using <ng-content></ng-content>
Here is the code:
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-embed',
template: `<ng-content></ng-content>`,
styles: [`
app-embed {
position:relative;
width:100%;
height:0;
padding-bottom:33%;
}
app-embed iframe {
width: 100vw;
height: 56.25vw;
}`]
})
export class AppEmbedComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
How do I fix this?