Angular2 directive to get the dimensions of an Element, even if it change during time
npm install angular2-dimensions-directive

npm i angular2-dimensions-directive --save
``typescript
import { DimensionsDirective } from 'angular2-clickoutside-directive';
@Component({
selector: 'my-app',
template :
,
directives : [ ClickOutsideDirective ]
} )
class MyFirstComponent implements OnInit {
constructor(){} onDimensionsChange($event)
{
console.log( $event.dimensions )
}
ngOnInit(){}
}
``Any pull-request is more than welcome :boom: :smile:
This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code.
MIT