项目结构 一 创建特性模块,及其包含的组件、服务。 二 特性模块 art.module.ts 三 组件 music.component.ts music.component.html dance.component.ts dance.component.html 四 服务 performance.s ...
分类:
其他好文 时间:
2018-04-25 22:06:10
阅读次数:
216
import { Component, OnInit, ViewChild } from '@angular/core'; @Component({ selector: 'app-child', templateUrl: './child.component.html', styleUrls: ['... ...
分类:
其他好文 时间:
2018-04-25 11:29:42
阅读次数:
419
红色标记的hr都是顶级的module,每个路由节点都会引入hr这个module,所以这些嵌入的界面可以放在hr这个module下 使用方式: 因为绑定InpOrdersControllr的module注入了hr所以在InpOrdersController可以注入hr下的PrescCreate ...
分类:
其他好文 时间:
2018-04-25 10:52:31
阅读次数:
177
import { Component, OnInit, EventEmitter, Output } from '@angular/core'; @Component({ selector: 'app-order-change', templateUrl: './order-change.compo... ...
分类:
其他好文 时间:
2018-04-24 18:55:24
阅读次数:
298
A template reference variable is often a reference to a DOM element within a template. It can also be a reference to an Angular component or directive ...
分类:
其他好文 时间:
2018-04-24 15:36:08
阅读次数:
385
昨天自己写了一小段js,在全选的时候有点儿小坑,然后,整理了一下。今天把它贴出来,希望以后还记得。 大家也可以去github上查看或下载:https://github.com/dreamITGirl/projectStudy/tree/master/html 我在用angular实现表格的全选时,是 ...
分类:
其他好文 时间:
2018-04-24 11:10:34
阅读次数:
218
前言 之前是用Vue的,现在由于工作原因,开始使用Angular。分别是Vue2和Angular5入的坑。只是从使用上来对比总结,加深记忆,避免混淆。 什么 ? 你问实现原理的异同及优劣? 本宝宝还在努力学习中,也许有生之年你可以看到分析贴。 不管用什么框架,创建项目都是第一步。发展到现在,Angu ...
分类:
其他好文 时间:
2018-04-24 11:03:08
阅读次数:
236
1、官网中在导入“of”关键字时的引用为: import { Observable, of } from 'rxjs'; 应该改为: import { Observable } from 'rxjs/Observable'; import { Observable } from 'rxjs/Obse ...
分类:
其他好文 时间:
2018-04-23 21:17:33
阅读次数:
186