
angular
七彩猫猫虫
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
大组件自整理-pad端
1、 表格初始头:用户登录 html: <span class="fontsize">统计完成:</span> <user-confirm-input (userConfirmed)="userConfirmed()" [title]="'记录者'" [(ngModel)]="confirmPerson" name="'confirmPerson'"...原创 2020-06-17 09:23:25 · 757 阅读 · 0 评论 -
大组件自整理-pc端
初始路由配置 注:下面三步顺序可以打乱 第一步 D:\11\check-manage-ui\src\app\routes\checkcell\task\checklist-routing.module.ts 第二步 新建要做的大组件的文件夹 上面路由中的的MmFormCs4L0001031Component组件就是ts里的: 第三步 在checklist.module.ts中配置组件 ...原创 2020-06-17 09:22:59 · 567 阅读 · 0 评论 -
angular-自定义管道
1、创建自定义管道: ng g pipe 目标文件夹/管道名字 (使用命令行创建,会自动在根模块文件中挂载) 2、配置管道文件: fangda.pipe.ts import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'fangda' }) export class FangdaPipe implements Pip...原创 2020-03-23 17:50:25 · 323 阅读 · 0 评论 -
angular-子传父/父组件使用子组件数据和方法
父组件:News 子组件:Footer 方法一:ViewChild app.component.html: <app-news></app-news> news.component.html: <app-footer #footer></app-footer> <br> <hr> <div>我是一个新闻组件...原创 2020-03-19 18:04:52 · 729 阅读 · 0 评论 -
angular-父组件给子组件传值
app.component.html: <app-home></app-home> home.component.html: <app-header [title]="title" [msg]="msg" //数据 [run]=run //方法 [home]=this //整个父组件 ></app-header>...原创 2020-03-19 17:39:09 · 402 阅读 · 0 评论 -
angular-数据持久化
storage.service.ts文件 import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class StorageService { constructor() { } set(key:string,value:any){ localStorag...原创 2020-03-19 17:31:50 · 455 阅读 · 1 评论