Component Angular have size (Width Height) -


i have issue in angular 4.

i thinks component in angular doesn't have size (width x height) this:

angular issue

so can't render new component because old component still there, can't change value of this.

you can set manually follow,

let's have component called home.component.ts

@component({   moduleid: module.id,   selector: 'home',   styleurls: ['home.component.css'],   templateurl: 'home.component.html', )} 

so in home.component.css, can set height , width below,

:host {             // host targets selector: 'home'      display: block;     left: 0;      width: 100%;    // takes parent width             or         widht: 1000px   // screen of having 1000px of width       height: 100%;   // takes parent height         or             height: 1000px  // screen of having 1000px of height } 

Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -