July 11, 2020
angular
directive
angular指令,目的在于影响Dom布局,或者修改Dom属性。
Directive分类Component
an extension of @Directive()
Demo123456789101112131415import { Component, OnInit ...
Read more
July 10, 2020
angular
angular.json
angular.json
相对于项目root 路径配置
有关workspace和项目的配置
angular-cli自动生成的
文件结构1234567891011121314{ "$schema": "./node_modules/@angular/ ...
Read more
July 2, 2020
angular
pipe
Angular Pipe Pipe的存在,目的在于进行数据的转换。前后端开发,后端提供的数据,不一定刚好就是要展示的数据,前端经常在拿到原始数据后,进行一次或者多次转换,才展示。
内置PipeDatePipe
根据时区格式化
采用默认的格式 1<p>The hero ...
Read more
July 2, 2020
git
Git 安装
点击链接,下载不同的版本安装即可,这里不再赘述了。
123456789 $ git usage: git [--version] [--help] [-C <path>] [-c <name>=<value>] [-- ...
Read more
June 29, 2020
vue
vue-cli
vue-cli介绍
vue-cli版本基于4.4.x
Vue CLI 致力于将 Vue 生态中的工具基础标准化
让使用者专注在撰写应用上,而不必花好几天去纠结配置的问题
提供了如下功能:
@vue/cli 交互式的项目脚手架
@vue/cli + @vue/ ...
Read more