Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Squashing HTML into your Components

  • David Donovan
  • 2017-08-23
  • 8
Squashing HTML into your Components
AngularASP.Net CoreIntegrationIntegrateIntegrate Angular with ASP.Net CoreBundling TechniquesAppCachePerformance MarkersDebug GulpDebug Git HooksNPMNodeJS
  • ok logo

Скачать Squashing HTML into your Components бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Squashing HTML into your Components или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

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

Cкачать музыку Squashing HTML into your Components бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Squashing HTML into your Components

Once you start developing components for your Angular application, you will need to create html and CSS files that support your components.

First, let’s look at a TypeScript file which references an html template URL and a CSS style URL.

Let’s take a quick look at html file that is referenced within the “settings” component.

You can put the html directly into your components at design time, however, if you do that, you will not be able to benefit from using an html editor. So I like to use a separate html file, and then reference it within my component.

This works great running locally in Debug mode, but before bundling and preparing for deployment, it is a good idea to squash the html and CSS into the components. Let’s take a look at the JavaScript file generated from the TypeScript file.

Here is how it looks before we squash it.

Now I will squash it. I’ll squash it by double clicking on the squash Gulp task, but this can be done automatically by running the “bundle-app-release” Gulp task.

,,,,,, And, this is how it looks after I squash it. We just squashed both the html and the CSS into the component. And we did the same for all the components.

What does this do for us? It reduces the number of files downloaded which decreases the time to launch the application, which increases the performance. Big performance gain!

Комментарии

Информация по комментариям в разработке

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

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

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