Table of Contents
Web Component
Definition
从 core/Directive 继承
几种元数据详解
inputs
outputs
host
queries - 视图查询
queries - 内容查询
styleUrls、styles
changeDetection
encapsulation
生命周期
Home Web Front-end JS Tutorial Angular Development Practice (3): Analyzing Angular Component

Angular Development Practice (3): Analyzing Angular Component

Apr 02, 2018 pm 02:52 PM
angular Analyze develop

This article introduces you to Angular development practice (3): Analyzing Angular Component. Interested friends can take a look at

Web Component

Before introducing Angular Component, Let’s first briefly understand W3C Web Components

Definition

  • W3C is a unified component standard method and proposes the standard of Web Component.

  • Each component contains its own html, css, and js code.

  • Web Component standard includes the following four important concepts:

  1. Custom Elements (custom tags): Yes Create custom HTML tags and elements;

  2. ##HTML Templates: Use the