![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Angular
lishichengyan
zju过气涂鸦爱好者
展开
-
Angular学习记录3:发布项目
1 ng build 在项目目录下运行: ng build --target=production --base-href / 我的cli版本是7.3.8,不知道是不是版本的问题,执行这个命令有问题。换成了: ng build --prod--base-href / 会生成dist目录,目录下是打好包的文件。 2 将项目部署到now 其实我觉得有必要学习一下AWS。。。。now应该也...原创 2019-05-05 11:57:16 · 158 阅读 · 0 评论 -
Angular学习记录1:新建项目等
1 新建项目 ng new 2 项目结构 (1)src目录下,index.html是项目入口 (2)在app目录下新建component,新建以后得到: 一个.component.ts文件 一个.component.spec.ts文件 一个.component.css文件 一个.component.html文件 .component.ts定义了这个component的逻辑,@com...原创 2019-04-30 15:54:36 · 161 阅读 · 0 评论 -
Angular学习记录8:路由
之前用过dva、umi等前端框架/库,对路由有一定的了解,所以学起来还好。 1 基础 页面就是路由。 There are three main components that we use to configure routing in Angular: Routes describes the routes our application supports RouterOutlet i...原创 2019-05-08 17:43:19 · 1052 阅读 · 0 评论 -
Angular学习记录2:angular-redis
1 SemanticUI 感觉需要学一下 2 #var_name 用来向函数传递变量值,例子: <form class="ui large form segment"> <h3 class="ui header">Add a Link</h3> <div class="field"> <label for="titl...原创 2019-04-30 18:00:26 · 472 阅读 · 0 评论 -
Angular学习记录5:Dependency Injection
0 什么是依赖 如果在class A中使用了class B,就说A依赖B。 1 为什么要依赖注入 类与类之间的紧耦合不利于测试、debug等。 2 什么时候需要依赖注入 2.1 Singleton 当整个应用需要共享一个单例 2.2environment-specific variables 需要配置对整个环境都起作用的常量(类似全局变量) 2.3Call any...原创 2019-05-06 11:26:07 · 537 阅读 · 0 评论 -
Angular学习记录7:http
1 新建项目angular-http ng new angular-http 2 写app.module.ts import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/f...原创 2019-05-07 17:16:35 · 524 阅读 · 0 评论 -
Angular数据可视化项目总结1
在实习,用Angular做一个数据可视化的项目,总结一下。 1 怎么使用Echart npm install echarts -S npm install ngx-echarts -S npm install @types/echarts -D 例子: // active-line.component.ts import { Component, OnInit } from '@ang...原创 2019-05-13 15:44:54 · 1797 阅读 · 0 评论