ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

#3 Angular 8 tutorial in hindi | generate components and Component structure in angular8 by Ashish

Автор: Testy Codeiz

Загружено: 2019-12-22

Просмотров: 745

Описание: Please watch: "Restful Api With Node.js Express.js & Mysql | Build A Restful Api Tutorial| RestFul API Crash Course"
   • Restful Api With Node.js Express.js & Mysq...   -~-
Angular 8 tutorial in hindi | generate components and Component structure in angular8 by Ashish,

#Angular8 tutorial in hindi | #generate components and #Component structure in angular8 by Ashish

How to create a Component 
To create component in Angular we can use 
ng generate component "component name" command from Angular CLI.
Note:- you can do so : ng  g  c  user  –spec=false  ( it will not generate .spec file).
let’s see what this command is doing:
ng : stands for angular CLI object.
generate: is used to generate any file (you can also use g (short name) instead of generate).
component: it means we want to generate component(you can also use c(short name) instead of component).

Component Structure
Template :-  It is the view layout of the component , it tell the component what would be render for view
Class :-  It is component class that will have properties and methods that will use by view
MetaData:- This provide additional information to angular about component by Decorator, Metadata tells Angular how to process a class


Class
In Angular we create  class like with class keyword followed by className (here it is infoComponent), here we have used export keyword that is ES6 module system. Export keyword here mark this class as public so that we can use it in other files by importing it .


MetaData:-

Typescript class will not act like a Angular Component until we don’t attach additional information with metadata and to add metadata we use Decorators.

Decorators are the methods which start with @ symbol. So in this @Component is a decorator which is taking object ({} ) as argument which will allow us to pass metadata.

@Component() decorators will have lot of keys that will be used to define our component.


selector : selector key is used to define the tag name for the component . Now we can call app-user like a custom html tag "app-user" from any html template

templateUrl: Every Component will have a attached template that will work like a view . So whenever this component will render it will display view to the user and that view will come from this template file

styleUrls: Every Component have their own style that will come from file which you will mention in styleUrls. It takes array as value so we can pass multiple css files

@Component is a predefined decorator which we need to import from @angular/core library.




Android Development (How to make Android apps).
"How to make money on youtube" "how to start e-commerce Business" "Hindi and Urdu tutorial" "website designing" "website development" "HTML tutorials for beginner" "html5 tutorials for beginner" "CSS tutorials for beginner" "css3 tutorials for beginner" "javascript tutorials for beginner" "PHP tutorials for beginner" "MySQL tutorials for beginner" "WordPress tutorials for beginner"



facebook
  / testy-codeiz-340803183243501  

twitter
  / tcodeiz  

linkedin
  / ashishmipra  

Youtube
   / @testycodiez  

pintrest
  / binumish452  

tumbler
https://www.tumblr.com/blog/testycode...


Website
https://testycodeiz.online



मेरे CHENNAL को SUBSCRIBE करना ना भूले आप मेरे लिंक से मुझसे FACEBOOK ,TWITTER पर अपने जबाब माँग सकते है

धन्यवाद दोस्तों

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
#3 Angular 8 tutorial in hindi | generate components and Component structure in angular8 by Ashish

Поделиться в:

Доступные форматы для скачивания:

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

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

Скачать аудио

Похожие видео

#4 angular 8 tutorial in hindi | How to Add bootstrap jquery popper.js in angular 8 by Ashish Mishra

#4 angular 8 tutorial in hindi | How to Add bootstrap jquery popper.js in angular 8 by Ashish Mishra

Екатерина Шульман про нехватку денег в бюджете, отъём вкладов и конфискацию имущества

Екатерина Шульман про нехватку денег в бюджете, отъём вкладов и конфискацию имущества

Тест-драйв электрокара Xiaomi: нам крышка?

Тест-драйв электрокара Xiaomi: нам крышка?

Angular 8/9 full tutorial in Hindi 2020

Angular 8/9 full tutorial in Hindi 2020

TanStack Query — как стать богом React Query

TanStack Query — как стать богом React Query

КАК НЕЛЬЗЯ ХРАНИТЬ ПАРОЛИ (и как нужно) за 11 минут

КАК НЕЛЬЗЯ ХРАНИТЬ ПАРОЛИ (и как нужно) за 11 минут

Angular 18  Asp.net 8 Digital Shop - Stripe Payment- Full Tutorial

Angular 18 Asp.net 8 Digital Shop - Stripe Payment- Full Tutorial

Angular 19 .Net 9 Crud Operation- - Full Tutorial - EF Core - Neon DB - Postgres

Angular 19 .Net 9 Crud Operation- - Full Tutorial - EF Core - Neon DB - Postgres

Як ми переписали Сільпо на Angular - Євген Русаков

Як ми переписали Сільпо на Angular - Євген Русаков

СОЛОВЬЁВ обратился к главе СБУ Малюку 😁 [Пародия]

СОЛОВЬЁВ обратился к главе СБУ Малюку 😁 [Пародия]

Я ненавижу длинные цепочки If-Elif: этот шаблон проектирования решил эту проблему раз и навсегда

Я ненавижу длинные цепочки If-Elif: этот шаблон проектирования решил эту проблему раз и навсегда

МГИМО vs МФТИ : Кто умнее? / Школьные и нешкольные вопросы

МГИМО vs МФТИ : Кто умнее? / Школьные и нешкольные вопросы

ДНК создал Бог? Самые свежие научные данные о строении. Как работает информация для жизни организмов

ДНК создал Бог? Самые свежие научные данные о строении. Как работает информация для жизни организмов

Адская прожарка Ruby. Так ли хорош язык программирования Ruby? #ruby #rubyonrails #programming

Адская прожарка Ruby. Так ли хорош язык программирования Ruby? #ruby #rubyonrails #programming

«Сыграй На Пианино — Я Женюсь!» — Смеялся Миллиардер… Пока Еврейка Не Показала Свой Дар

«Сыграй На Пианино — Я Женюсь!» — Смеялся Миллиардер… Пока Еврейка Не Показала Свой Дар

Claude Code: полный гайд по AI-кодингу (хаки, техники и секреты)

Claude Code: полный гайд по AI-кодингу (хаки, техники и секреты)

Firecrawl + MCP-сервер в n8n: Забудь про сложный парсинг и скрапинг! Идеальный AI агент

Firecrawl + MCP-сервер в n8n: Забудь про сложный парсинг и скрапинг! Идеальный AI агент

Молочные продукты после 40–50 лет, есть или исключить? Что укрепляет кости, а что их разрушает.

Молочные продукты после 40–50 лет, есть или исключить? Что укрепляет кости, а что их разрушает.

ТВОРЧЕСКАЯ ИНТЕЛЛИГЕНЦИЯ ТРЕБУЕТ ЖРАТЬ!

ТВОРЧЕСКАЯ ИНТЕЛЛИГЕНЦИЯ ТРЕБУЕТ ЖРАТЬ!

F90: прямой эфир, философия программиста, вопросы и ответы

F90: прямой эфир, философия программиста, вопросы и ответы

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]