first build production with aot
ng build --prod
--prod
build is a 'meta' flag, that set other flags. If you do not specify --prod
you will get the --dev
defaults.
--prod
sets:
--aot
as true
--environment
as prod
first build production with aot
ng build --prod
--prod
build is a 'meta' flag, that set other flags. If you do not specify --prod
you will get the --dev
defaults.
--prod
sets:
--aot
as true
--environment
as prod
ng new heyBarista --ng4 --routing --style=scss | |
npm install --save @angular/material @angular/cdk | |
npm install --save @angular/animations | |
npm install --save hammerjs | |
npm install --save @angular/flex-layout | |
npm install @angular-mdl/core --save | |
npm install angularfire2 firebase --save |
<body> | |
<app-root> | |
<style> | |
app-root { | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
height: 100vh; | |
font-size: 5em; |
The MIT License (MIT) | |
Copyright (c) <year> <copyright holders> | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
The Software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with |
<md-card class="demo-card demo-basic"> | |
<md-toolbar color="primary">Basic</md-toolbar> | |
<md-card-content> | |
<form> | |
<md-input-container class="demo-full-width"> | |
<input mdInput placeholder="Company (disabled)" disabled value="Google"> | |
</md-input-container> | |
<table style="width: 100%" cellspacing="0"><tr> | |
<td> |
<md-card class="card-demo" > | |
<md-card-title>Responsive Layout Directions</md-card-title> | |
<md-card-subtitle>Layout direction changes to 'column' for 'xs' or 'sm' viewport sizes:</md-card-subtitle> | |
<md-card-content> | |
<div class="containerX"> | |
<div fxLayout="row" fxLayout.xs="column" fxLayout.sm="column" fxFlex class="coloredContainerX box" > | |
<div fxFlex> I'm above on mobile, and to the left on larger devices. </div> | |
<div fxFlex> I'm below on mobile, and to the right on larger devices. </div> | |
</div> | |
</div> |
<div class="widgets-row" | |
fxLayout | |
fxLayout.xs="column" | |
fxLayoutAlign="start" | |
fxLayoutWrap="wrap"> | |
<div class="widget" fxFlex="100%">Large</div> | |
</div> | |
<div fxLayout | |
fxLayout.xs="column" |