ReferenceError: CodeMirror is not defined
(function(mod){
. . .
})(function(CodeMirror){ . . . })
host: {
"[@state]":"visible?'expanded':'collapsed'"
},
animations: [
trigger('state', [
state('collapsed', style({})),
state('expanded', style({})),
transition('*<=>*', animate(300))
])
]
<input type='color' [(ngModel)]='myColor' />
<div class='myElement' [ngStyle]='{backgroundColor: myColor}'>
....
</div>
//...
myColor: string;
//...
<input type='color' #myColor />
<div class='myElement' [ngStyle]='{backgroundColor: myColor.value}'>