Angular resize event stackblitz, You need to do it in three steps