The Angular Material Toolbar is declared like this:
@Component({
selector: 'mat-toolbar',
exportAs: 'matToolbar',
templateUrl: 'toolbar.html',
styleUrls: ['toolbar.css'],
inputs: ['color'],
...
})
Is using inputs: ['color] in the component declaration the same as putting @Input() color in the class body?
Also anyone know what the purpose of exportAs is?
exportAsit says:Defines the name that can be used in the template to assign this directive to a variable.divand turn it into amat-toolbarcomponent we could do<div matToolbar ...>essentially upgrading a div element to amat-toolbarcomponent? I assume thedivthen also gets properties likecoloretc?