摘要:
import { ngModule } from '@angular/core'; import { AppComponent } from './app.component'; export class AppModule { } 通过 export 关键字,模块可以把某些对象声明为公共的。其他模 阅读全文
摘要:
Angular 介绍 Angular 是一款来自谷歌的开源的web前端框架,诞生于2009年,是一款优秀的前端JS框架,已经被用于谷歌的多款产品。 Angular 基于Typescript开发 ,更适合中大型企业级的项目。 学习Angular的必备基础 html、css、js、es6、Typescr 阅读全文
摘要:
ReferenceError: internalBinding is not defined at internal/util/inspect.js:31:15 at req_ (D:\workspace\testDemo\node_modules\natives\index.js:137:5) a 阅读全文
摘要:
git checkout 的用法 用法一:切换分支 git checkout <branch> eg: git checkout master (切换到master分支) git checkout -b <branch> eg: git checkout -b branch_1 (新建branch1 阅读全文
摘要:
比如:在master分支上执行了git pull命令,想回到pull之前分支所在的commit位置。 步骤一:用 git reflog master 查看master分支的历史变动记录,其中有一个就是pull之前的那个commit 步骤二: 用 git reset --hard <COMMIT_ID 阅读全文
摘要:
TypeScript是一种由微软开发的自由开源的编程语言,他是JavaScript的一个超集,扩展了JavaScript的语法。 优势: 一、Angular2框架的开发语言 Angular2是一款开源的JavaScript库,由谷歌维护,用来协助单一页面应用程序运行。Angular2就是用Types 阅读全文