摘要:
一,概述 路由就是根据不同的url地址,动态的让根组件挂载其他组件来实现一个单页面应用 二,使用 1,创建项目时注意选择创建路由--yes 2,在app-routing.module.ts中引入需要配置路由的组件,然后声明访问路径 import { HomeComponent } from './c 阅读全文
摘要:
一、Angular get请求数据 Angular5.x以后get, post和和服务器交互使用的是HttpClientModule模块。 1、在app.module.ts中引入HttpClientModule并注入 import {HttpClientModule} from '@angular/ 阅读全文