- Hands-On Full Stack Web Development with Angular 6 and Laravel 5
- Fernando Monteiro
- 183字
- 2021-07-23 19:18:52
Angular and the component method for developing modern web applications
Angular components are similar to web components; they are used to compose web pages, or even other components. There can be dozens of components in a web application.
Components define views and templates, and they belong to a module within an application; every application has, at the very least, a root module, named by the Angular CLI as AppModule.ts.
The app.module.ts file contains all of the bootstrap code and configurations for an Angular application, as you can see in the following block of code:
import { NgModule } from '@angular/core'; @NgModule({ declarations: [ AppComponent ], imports: [], providers: [], bootstrap: [AppComponent] }) export class AppModule { }
The preceding code is the most basic configuration of an Angular application; we import the NgModule from the Angular core library and use it as a decorator: @NgModule.
Both components and services are simply classes, with decorators that mark their types and provide metadata that tells Angular how to use them.
- C++黑客編程揭秘與防范
- 信息通信網(wǎng)絡(luò)建設(shè)安全管理概要2
- Practical Web Design
- SSL VPN : Understanding, evaluating and planning secure, web/based remote access
- 數(shù)字調(diào)制解調(diào)技術(shù)的MATLAB與FPGA實(shí)現(xiàn):Altera/Verilog版(第2版)
- 網(wǎng)絡(luò)基礎(chǔ)與網(wǎng)絡(luò)管理項(xiàng)目化教程
- Building Web Applications with ArcGIS
- 物聯(lián)網(wǎng)頂層設(shè)計(jì)與關(guān)鍵技術(shù)
- 5G技術(shù)核心與增強(qiáng):從R15到R17
- 物聯(lián)網(wǎng)基礎(chǔ)及應(yīng)用
- 深入理解計(jì)算機(jī)網(wǎng)絡(luò)
- Guide to NoSQL with Azure Cosmos DB
- 物聯(lián)網(wǎng)技術(shù)與實(shí)踐
- OSPF協(xié)議原理與功能拓展
- Microsoft System Center 2012 Configuration Manager:Administration Cookbook