上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 46 下一页
摘要: 阅读全文
posted @ 2018-04-26 12:36 chester·chen 阅读(125) 评论(0) 推荐(0)
摘要: child works! 父组件投影 child works! 页头 页脚 import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleU... 阅读全文
posted @ 2018-04-25 11:27 chester·chen 阅读(255) 评论(0) 推荐(0)
摘要: import { Component, OnInit, ViewChild } from '@angular/core'; @Component({ selector: 'app-child', templateUrl: './child.component.html', styleUrls: ['./child.component.css'] }) export class Ch... 阅读全文
posted @ 2018-04-25 11:10 chester·chen 阅读(223) 评论(0) 推荐(0)
摘要: import { Component, OnInit, Input, OnChanges, SimpleChanges, DoCheck } from '@angular/core'; @Component({ selector: 'app-child', templateUrl: './child.component.html', styleUrls: ['./child.com... 阅读全文
posted @ 2018-04-25 10:41 chester·chen 阅读(258) 评论(0) 推荐(0)
摘要: import { Component, OnInit, Input, OnChanges, SimpleChanges } from '@angular/core'; @Component({ selector: 'app-child', templateUrl: './child.component.html', styleUrls: ['./child.component.cs... 阅读全文
posted @ 2018-04-25 10:17 chester·chen 阅读(1102) 评论(0) 推荐(0)
摘要: import { Component, OnInit, EventEmitter, Output } from '@angular/core'; @Component({ selector: 'app-order-change', templateUrl: './order-change.component.html', styleUrls: ['./order-change.co... 阅读全文
posted @ 2018-04-24 17:59 chester·chen 阅读(147) 评论(0) 推荐(0)
摘要: import { Component, OnInit, EventEmitter, Output } from '@angular/core'; @Component({ selector: 'app-order-change', templateUrl: './order-change.component.html', styleUrls: ['./order-change.co... 阅读全文
posted @ 2018-04-24 17:32 chester·chen 阅读(123) 评论(0) 推荐(0)
摘要: import { Component, OnInit, Input } from '@angular/core'; @Component({ selector: 'app-order', templateUrl: './order.component.html', styleUrls: ['./order.component.css'] }) export class OrderC... 阅读全文
posted @ 2018-04-24 15:01 chester·chen 阅读(156) 评论(0) 推荐(0)
摘要: import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'multi' }) export class MultiPipe implements PipeTransform { transform(value: any, args?: any): any { if (args == null) { ... 阅读全文
posted @ 2018-04-23 19:43 chester·chen 阅读(726) 评论(0) 推荐(0)
摘要: {{name}} import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-bind', templateUrl: './bind.component.html', styleUrls: ['./bind.component.css'] }) export class Bind... 阅读全文
posted @ 2018-04-23 17:21 chester·chen 阅读(100) 评论(0) 推荐(0)
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 46 下一页