GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing next.angular.dev — Composition with components • Angular Components are the main building blocks of Angular applications. Each component represents a part of a larger web page. Organizing an application into components helps provide structure to your project, clearly separating code into specific parts that are easy to maintain and grow over time. Defining a componentEvery component has a few main parts:
Here is a simplified example of a user-profile.ts
The user-profile.ts
Separating HTML and CSS into separate filesYou can define a component's HTML and CSS in separate files using user-profile.ts
user-profile.html
user-profile.css
Using componentsYou build an application by composing multiple components together. For example, if you are building a user profile page, you might break the page up into several components like this: Here, the To import and use a component, you need to:
Here's an example of a user-profile.ts
TIP: Want to know more about Angular components? See the In-depth Components guide for the full details. Next StepNow that you know how components work in Angular, it's time to learn how we add and manage dynamic data in our application. |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |