• ClipSaver
  • dtub.ru
ClipSaver
Русские видео
  • Смешные видео
  • Приколы
  • Обзоры
  • Новости
  • Тесты
  • Спорт
  • Любовь
  • Музыка
  • Разное
Сейчас в тренде
  • Фейгин лайф
  • Три кота
  • Самвел адамян
  • А4 ютуб
  • скачать бит
  • гитара с нуля
Иностранные видео
  • Funny Babies
  • Funny Sports
  • Funny Animals
  • Funny Pranks
  • Funny Magic
  • Funny Vines
  • Funny Virals
  • Funny K-Pop

Call child component methods and properties using template reference variable скачать в хорошем качестве

Call child component methods and properties using template reference variable 7 лет назад

скачать видео

скачать mp3

скачать mp4

поделиться

телефон с камерой

телефон с видео

бесплатно

загрузить,

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Call child component methods and properties using template reference variable
  • Поделиться ВК
  • Поделиться в ОК
  •  
  •  


Скачать видео с ютуб по ссылке или смотреть без блокировок на сайте: Call child component methods and properties using template reference variable в качестве 4k

У нас вы можете посмотреть бесплатно Call child component methods and properties using template reference variable или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:

  • Информация по загрузке:

Скачать mp3 с ютуба отдельным файлом. Бесплатный рингтон Call child component methods and properties using template reference variable в формате MP3:


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса ClipSaver.ru



Call child component methods and properties using template reference variable

In this video we will discuss how to call child component methods and properties from parent component. One way to do this is by using output properties. We discussed output properties in Part 37 of Angular CRUD tutorial. Another way, to pass data from the child component to the parent component is by using a template reference variable. Healthy diet is very important for both body and mind. We want to inspire you to cook and eat healthy. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking.    / @aarvikitchen5572   Let us understand this with an example. We want to do the same thing that we did with Output properties in Part 37. The child component DisplayEmployeeComponent is responsible for displaying each Employee details in a Bootstrap Panel. Here is what we want to do. When we click on any of the employee panel we want to display that employee name and gender. So we need to pass employee name and gender from the child component (DisplayEmployeeComponent) to parent component (ListEmployeesComponent). Here is the child component class. Notice the class has employee property and getNameAndGender() method. We will be calling both of these from the parent component (ListEmployeesComponent) using a template reference variable. export class DisplayEmployeeComponent { @Input() employee: Employee; getNameAndGender(): string { return this.employee.name + ' ' + this.employee.gender; } } Code in Parent Component View Template (list-employees.component.html) <h1 #h1Variable></h1> <div *ngFor="let employee of employees"> <div (click)="h1Variable.innerHTML = childComponent.getNameAndGender()"> <app-employee-display [employee]="employee" #childComponent> </app-employee-display> </div> </div> Code Explanation : #childComponent is the template reference variable to the child component. Using this template variable we can call child component public property (employee) and method (getNameAndGender()) <div (click)="handleClick(childComponent.getNameAndGender())">. Using the template reference variable we are calling the child component method getNameAndGender(). The value this method returns is assigned to the innerHTML property of the <h1> element. #h1Variable is the template reference variable for <h1> element. At this point when you click on an employee panel, you will see that employee's name and gender displayed by the <h1> element. Calling the child component property using template reference variable : Notice in the example below, we are calling the child component public property employee using the template reference variable childComponent. <h1 #h1Variable></h1> <div *ngFor="let employee of employees"> <div (click)="h1Variable.innerHTML = childComponent.employee.name + ' ' + childComponent.employee.gender"> <app-employee-display [employee]="employee" #childComponent> </app-employee-display> </div> </div> Even now, when you click on an employee panel, you will see that employee's name and gender displayed by the <h1> element exactly the same way as before. Summary : There are 2 ways to pass data from Child Component to Parent Component 1. Output Properties 2. Template Reference Variable With Output properties there are several moving parts. In the child component we need to create a custom event. Raise the custom event. From the parent component bind to the child component event and handle it. With the template reference variable approach, we do not have so many moving parts. We just declare a template reference variable and use it to call the child component public properties and methods. Text version of the video http://csharp-video-tutorials.blogspo... Slides http://csharp-video-tutorials.blogspo... Angular CRUD Tutorial    • Angular CRUD tutorial   Angular CRUD Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspo... All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenka... All Dot Net and SQL Server Tutorials in Arabic    / kudvenkatarabic  

Comments
  • Angular route guards 7 лет назад
    Angular route guards
    Опубликовано: 7 лет назад
  • #29 Переменная ссылки шаблона | Компонент и директивы Angular | Полный курс по Angular 2 года назад
    #29 Переменная ссылки шаблона | Компонент и директивы Angular | Полный курс по Angular
    Опубликовано: 2 года назад
  • Angular component communication 7 лет назад
    Angular component communication
    Опубликовано: 7 лет назад
  • Переговоры провалились / Срочная переброска войск 19 часов назад
    Переговоры провалились / Срочная переброска войск
    Опубликовано: 19 часов назад
  • $1 vs $1,000,000,000 Футуристических Технологий! 5 часов назад
    $1 vs $1,000,000,000 Футуристических Технологий!
    Опубликовано: 5 часов назад
  • F93: прямой эфир, философия программиста, вопросы и ответы Трансляция закончилась 1 день назад
    F93: прямой эфир, философия программиста, вопросы и ответы
    Опубликовано: Трансляция закончилась 1 день назад
  • Для Чего РЕАЛЬНО Нужен был ГОРБ Boeing 747? 2 месяца назад
    Для Чего РЕАЛЬНО Нужен был ГОРБ Boeing 747?
    Опубликовано: 2 месяца назад
  • Mastering Angular 16: Build Powerful Web Applications
    Mastering Angular 16: Build Powerful Web Applications
    Опубликовано:
  • Все будет хуже. Мы - пример, как не надо жить. Санкции, это положительно. Россияне о ценах на нефть 2 дня назад
    Все будет хуже. Мы - пример, как не надо жить. Санкции, это положительно. Россияне о ценах на нефть
    Опубликовано: 2 дня назад
  • Скоро начнётся пятый год войны | Зачем её вести дальше (English subtitles) 3 дня назад
    Скоро начнётся пятый год войны | Зачем её вести дальше (English subtitles)
    Опубликовано: 3 дня назад
  • Где начало СХЕМЫ? Понимаем, читаем, изучаем схемы. Понятное объяснение! 9 месяцев назад
    Где начало СХЕМЫ? Понимаем, читаем, изучаем схемы. Понятное объяснение!
    Опубликовано: 9 месяцев назад
  • Если у тебя спросили «Как твои дела?» — НЕ ГОВОРИ! Ты теряешь свою силу | Еврейская мудрость 1 месяц назад
    Если у тебя спросили «Как твои дела?» — НЕ ГОВОРИ! Ты теряешь свою силу | Еврейская мудрость
    Опубликовано: 1 месяц назад
  • Angular ng-content, ng-container, ng-template and ngTemplateOutlet implementation | angular tutorial 2 года назад
    Angular ng-content, ng-container, ng-template and ngTemplateOutlet implementation | angular tutorial
    Опубликовано: 2 года назад
  • Эксперт (Короткометражка, Русский дубляж) 7 лет назад
    Эксперт (Короткометражка, Русский дубляж)
    Опубликовано: 7 лет назад
  • Романтическая короткометражка «НЕ МОЙ» | DeeaFilm 8 лет назад
    Романтическая короткометражка «НЕ МОЙ» | DeeaFilm
    Опубликовано: 8 лет назад
  • Как правильно заводить двигатель в мороз? 3 года назад
    Как правильно заводить двигатель в мороз?
    Опубликовано: 3 года назад
  • Комедийная короткометражка «Альтернативная математика» | Озвучка DeeAFilm 7 лет назад
    Комедийная короткометражка «Альтернативная математика» | Озвучка DeeAFilm
    Опубликовано: 7 лет назад
  • Angular forms tutorial 8 лет назад
    Angular forms tutorial
    Опубликовано: 8 лет назад
  • «НАЧНЕТСЯ КАСКАДНЫЙ ЭФФЕКТ». В России бьют тревогу. КРИЗИС УЖЕ НАЧАЛСЯ 4 дня назад
    «НАЧНЕТСЯ КАСКАДНЫЙ ЭФФЕКТ». В России бьют тревогу. КРИЗИС УЖЕ НАЧАЛСЯ
    Опубликовано: 4 дня назад
  • ВОТ как ПРАВИЛЬНО разговаривать с котом, чтобы он ТЕБЯ ПОНИМАЛ! 1 день назад
    ВОТ как ПРАВИЛЬНО разговаривать с котом, чтобы он ТЕБЯ ПОНИМАЛ!
    Опубликовано: 1 день назад

Контактный email для правообладателей: u2beadvert@gmail.com © 2017 - 2026

Отказ от ответственности - Disclaimer Правообладателям - DMCA Условия использования сайта - TOS



Карта сайта 1 Карта сайта 2 Карта сайта 3 Карта сайта 4 Карта сайта 5