This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.example-viewport { | |
height: 200px; | |
width: 200px; | |
border: 1px solid black; | |
} | |
.example-item { | |
height: 50px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="example-box" cdkDrag> | |
Drag me around | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Component} from '@angular/core'; | |
/** | |
* @title Basic Drag&Drop | |
*/ | |
@Component({ | |
selector: 'cdk-drag-drop-overview-example', | |
templateUrl: 'cdk-drag-drop-overview-example.html', | |
styleUrls: ['cdk-drag-drop-overview-example.css'], | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.example-box { | |
width: 200px; | |
height: 200px; | |
border: solid 1px #ccc; | |
color: rgba(0, 0, 0, 0.87); | |
cursor: move; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
text-align: center; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'bla-bla', | |
template: ` | |
<header> | |
<slot name="bla-header"></slot> | |
</header> | |
<slot></slot>`, | |
encapsulation: ViewEncapsulation.ShadowDom, | |
styles: [] | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bla-bla> | |
<span slot="bla-header">Angular rocks!</span> | |
<bla-bla> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"budgets": [ | |
{ | |
"type": "initial", | |
"maximumWarning": "2mb", | |
"maximumError": "5mb" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"extends": "../tsconfig.base.json", | |
"compilerOptions": { | |
"experimentalDecorators": true, | |
// ... | |
}, | |
"angularCompilerOptions": { | |
"fullTemplateTypeCheck": true, | |
"preserveWhitespaces": true, | |
// ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install -g @angular/cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ng new newapp |