Angular
yuansheng888888
软件开发十多年
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
跟我一起学Angular 数据交互
get post JSONP 在app.module.ts中引入HttpClientModule import { 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 —RxJS RxJS 针对 异步数据流的编程 几种方法 1,回调函数 2,事件监听/发布订阅 3,Promise 4,Rxjs Rxjs 语法类似 Promise 先定义服务 import { Observable } from ‘rxjs’; ///////Rxjs 比 Promise 更强大。可以多次执行,可以取消 Promise 不可以 getInterValJx...原创 2019-08-12 22:40:20 · 166 阅读 · 0 评论
分享