Reset Angular template reference variable In my Angular application I use this code with the template reference variable swiper