install "@types/node": "^7.0.12",
modify webpack.config.dev.js
// Place your settings in this file to overwrite the default settings | |
{ | |
"editor.tabSize": 2, | |
"files.associations": { | |
".css": "sass", | |
"*.html": "html" | |
}, | |
"terminal.integrated.shell.osx": "/bin/zsh", | |
"workbench.colorTheme": "Monokai", | |
"window.zoomLevel": 0, |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> | |
<script src="node_modules/setImmediate/setImmediate.js"></script> |
import React from 'react'; | |
let howManyToShowAtATime = 5; | |
export default ({elementLength, start, howMany, onPageClicked}) => { | |
let numberOfPages = Math.ceil(elementLength / howMany); | |
let pageLinkNodes = []; | |
let previousNode, nextNode; | |
let previousTextNode = <span>Prev</span>; | |
let nextTextNode = <span>Next</span>; | |
let onPageClickHandler = (start) => { |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body ng-app="todoApp"> | |
<div ng-controller="TodoCtrl as todoList"> | |
Select All <input type="checkbox" ng-checked="todoList.isCheckedAll()" ng-click="todoList.checkAll()" /> |