Skip to content

Instantly share code, notes, and snippets.

@alterx
alterx / other-child.ts
Created November 21, 2016 17:41
Angular 2 @input() change detection with OnChange and ngOnChange
import {
Component, Input,
OnInit,
OnChanges, SimpleChanges, SimpleChange
} from '@angular/core';
@Component({
selector: 'my-last-name',
template: `
<h2>Last name: {{_name}} ({{ name }})</h2>
// Highcharts CheatSheet Part 1.
// Create interactive charts easily for your web projects.
// Download: http://www.highcharts.com/download
// More: http://api.highcharts.com/highcharts
// 1. Installation.
// Highcharts requires two files to run, highcharts.js and either jQuery, MooTools or Prototype or the Highcharts Standalone Framework which are used for some common JavaScript tasks.
// <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
// <script src="https://code.highcharts.com/highcharts.js"></script>