docs: add example for template local variable (#43137)
docs: add example for template local variable (#43137)

PR Close #43137

ocombe/angular,brandonroberts/angular,shairez/angular,brandonroberts/angular,angular/angular,gkalpak/angular,gkalpak/angular,manekinekko/angular,gkalpak/angular,gnomeontherun/angular,shairez/angular,gnomeontherun/angular,JiaLiPassion/angular,angular-indonesia/angular,gnomeontherun/angular,shairez/angular,brandonroberts/angular,angular/angular,ocombe/angular,brandonroberts/angular,JiaLiPassion/angular,brandonroberts/angular,ocombe/angular,angular/angular,angular-indonesia/angular,manekinekko/angular,gkalpak/angular,shairez/angular,manekinekko/angular,angular-indonesia/angular,gnomeontherun/angular,manekinekko/angular,ocombe/angular,manekinekko/angular,angular-indonesia/angular,angular/angular,manekinekko/angular,ocombe/angular,JiaLiPassion/angular,shairez/angular,JiaLiPassion/angular,ocombe/angular,brandonroberts/angular