Angular
yuansheng888888
软件开发十多年
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
跟我一起学Angular 数据交互
get post JSONP在app.module.ts中引入HttpClientModuleimport { HttpClientModule } from ‘@angular/common/http’;然后在 imports 中注入 HttpClientModule在需要使用的页面引入////当做一个服务import { HttpClient} from ‘@angular/c...原创 2019-08-13 22:50:11 · 161 阅读 · 0 评论 -
跟我一起学Angular 之 路由
路由:根据不同的url地址,动态的让根组件挂载其他组件,来实现一个单页面应用app-routing.module.ts 中设置路由/////配置路由const routes : Routes= [{path:‘home’,component : HomeComponent,children:[{path:‘welcome’,component:WelcomeComponent}...原创 2019-08-14 22:39:24 · 122 阅读 · 0 评论 -
和我一起学Angular 路中传值
Angular 路中传值1,动态路由1,配制动态路由path : ‘newscontent/:aid’, /配置动态路由/2,跳转3,接收2,get传值////get 传值------跳转///接收// 引入ActivatedRoute 这个模块// import { ActivatedRoute } from ‘@angular/router’;动态路由的js跳转1,动态...原创 2019-08-15 23:08:35 · 151 阅读 · 0 评论 -
跟我一起学Angular ---RxJS
跟我一起学Angular —RxJSRxJS 针对 异步数据流的编程几种方法1,回调函数2,事件监听/发布订阅3,Promise4,RxjsRxjs 语法类似 Promise先定义服务import { Observable } from ‘rxjs’;///////Rxjs 比 Promise 更强大。可以多次执行,可以取消 Promise 不可以getInterValJx...原创 2019-08-12 22:40:20 · 166 阅读 · 0 评论
分享