by joe.pesch
21. July 2017 11:20
Angular 4 with Bootstrap using CLI
ng new ...
npm install --save @types/jquery
npm install --save @types/bootstrap
add to index.html (head tag):
<link href="node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="node_modules/jquery/dist/jquery.min.js "></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.js "></script>
TypeScript Guid class:
class Guid {
static newGuid() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8);
return v.toString(16);
});
}
}
41b0cc28-45a9-45e5-853d-563931167805|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Tags: