参考地址: https://v2.angular.cn/docs/ts/latest/cli-quickstart.html Angular CLI是一个命令行界面工具,它可以创建项目、添加文件以及执行一大堆开发任务,比如测试、打包和发布。 1. 请先在终端/控制台窗口中运行命令 node -v 和 ...
分类:
其他好文 时间:
2019-02-02 21:52:48
阅读次数:
158
第一步:根目录新建 proxy.conf.json target:就是代理的服务器地址。 接口地址必须是http://localhost:8081/api开头 第二步: 在package.json里配置如下代码 第三步:输入以下命令开启 ...
分类:
其他好文 时间:
2019-02-02 19:24:05
阅读次数:
168
1、Vue介绍 Vue和Angular、React都是前端框架,特点: 1、单页面框架; 2、基于模块化组件化的开发模式; 3、Vue简单 灵活 高效 国内的中小企业里面用的非常多。 2、开发环境搭建 1、必须要先安装nodejs(自带NPM工具) https://cn.vuejs.org/v2/g ...
分类:
其他好文 时间:
2019-02-01 15:57:36
阅读次数:
184
本文转自:https://www.cnblogs.com/lilunpai/articles/7992538.html 一、环境介绍 1、开发环境:Windows10 2、开发ide工具:VS code https://code.visualstudio.com/ 二、准备环境 1、下载并安装nod ...
Angular中,提供的表单验证不能用于所有应用场景,就需要创建自定义验证器,比如对IP、MAC的合法性校验 这里是根据 "官网实例" 自定义MAC地址的正则校验,环境为Angular: 7.2.0 , NG ZORRO:v7.0.0 rc3 添加指令 注册到 提供商中 Angular 在验证流程中 ...
分类:
其他好文 时间:
2019-01-31 16:44:25
阅读次数:
181
Extracting away the implementation details of ngrx from your components using the facade pattern creates some interesting possibilities in terms of it ...
分类:
移动开发 时间:
2019-01-31 01:26:33
阅读次数:
151
1 import { trigger, state, transition, style, animate, keyframes } from '@angular/animations'; //trigger, state, transition, style, animate 这5个都是动画函数 ...
分类:
其他好文 时间:
2019-01-31 01:25:19
阅读次数:
376
Communicating with a remote server via HTTP presents an extra level of complexity as there is an increased chance of race conditions and the need for ...
分类:
其他好文 时间:
2019-01-31 01:22:06
阅读次数:
117
1、引入 import { ViewChild } from '@angular/core'; import { Slides } from 'ionic-angular'; export class OrderPage { @ViewChild(Slides) slides: Slides; co ...
分类:
其他好文 时间:
2019-01-30 23:09:42
阅读次数:
176
简单聊聊angular的发展过程 AngularJS2 是一款开源JavaScript库,由Google维护,用来协助单一页面应用程序运行。是Angular 1.x 的升级版本,性能上得到显著的提高,能很好的支持 Web 开发组件。发布于2016年9月份,它是基于ES6来开发的。 1. 工作原理 A ...
分类:
其他好文 时间:
2019-01-30 16:14:52
阅读次数:
123