Skip to content

Instantly share code, notes, and snippets.

View takahser's full-sized avatar
:octocat:
🤙🏼

S E R A Y A takahser

:octocat:
🤙🏼
View GitHub Profile
@takahser
takahser / angular-upgrade-5.md
Last active January 19, 2018 11:24
Angular Upgrade from 4.4.5 => 5.2.1

Angular Upgrade from 4.4.5 => 5.2.1

Breaking Changes

  • Replace all HttpModule => HttpClientModule
  • Replace all Http => HttpClient

Upgrade npm packages

npm install @angular/animations@'^5.2.1' @angular/common@'^5.2.1' @angular/compiler@'^5.2.1' @angular/compiler-cli@'^5.2.1' @angular/core@'^5.2.1' @angular/forms@'^5.2.1' @angular/http@'^5.2.1' @angular/platform-browser@'^5.2.1' @angular/platform-browser-dynamic@'^5.2.1' @angular/platform-server@'^5.2.1' @angular/router@'^5.2.1' typescript@2.4.2 rxjs@'^5.5.2'

@takahser
takahser / nativescript.md
Last active December 29, 2017 14:22
NativeScript

NativeScript

with Angular & TypeScript

CLI

# without template
tns create MyApp --ng

with template

NEM

NanoWallet

Wallet Types

  • simple wallet => creates .wlt file, containing pvt key, encrypted by password (easily importable)
  • brain wallet => pvt key derives from the password, pvt key is not exported, wallet login is possible from any NanoWallet on another computer (use at least 12 characters for the password)
  • pvt key wallet => used to import an old account / paper wallet
@takahser
takahser / angular-upgrade-4.4.5.md
Last active October 19, 2017 13:25
angular upgrade

Angular Upgrade from 4.0.0 => 4.4.5

Summary

  1. Identify newest package versions by executing ncu (to install: npm install npm-check-updates -g)
  2. Update all @angular/ package versions in package.json to the newest version (4.4.5)
  3. Update other angular packages to their newest versions
  4. npm install
  5. npm start, check for issues and correct
@takahser
takahser / angular-modules.md
Last active November 16, 2017 17:16
Angular Modules

Angular Modules

Basic Syntax

Root Module Example:

  import { NgModule } from '@angular/core';
  import { BrowserModule } from '@angular/platform-browser'; // in root modules