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, OnInit } from '@angular/core'; | |
import { AngularFire, FirebaseListObservable } from 'angularfire2'; | |
import { Observable } from 'rxjs/Observable'; | |
import { RouteParams } from '@ngrx/router'; | |
import 'rxjs/add/operator/pluck'; | |
@Component({ | |
moduleId: module.id, |
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 { BrowserModule } from '@angular/platform-browser'; | |
import { NgModule } from '@angular/core'; | |
import { FormsModule } from '@angular/forms'; | |
import { HttpModule } from '@angular/http'; | |
import { AppComponent } from './app.component'; | |
// imports material | |
import { MaterialModule } from '@angular/material'; |
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 { BrowserModule } from '@angular/platform-browser'; | |
import { NgModule } from '@angular/core'; | |
import { FormsModule } from '@angular/forms'; | |
import { HttpModule } from '@angular/http'; | |
import { AppComponent } from './app.component'; | |
// imports material | |
import { MaterialModule } from '@angular/material'; |
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 { BrowserModule } from '@angular/platform-browser'; | |
import { NgModule } from '@angular/core'; | |
import { FormsModule } from '@angular/forms'; | |
import { HttpModule } from '@angular/http'; | |
import { AppComponent } from './app.component'; | |
// imports material | |
import { MaterialModule } from '@angular/material'; |
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
{ | |
"compilerOptions": { | |
"baseUrl": "", | |
"declaration": false, | |
"emitDecoratorMetadata": true, | |
"experimentalDecorators": true, | |
"lib": ["es6", "dom"], | |
"mapRoot": "./", | |
"module": "es6", | |
"moduleResolution": "node", |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>ProbandoMaterial</title> | |
<base href="/"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="icon" type="image/x-icon" href="favicon.ico"> | |
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | |
</head> |
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
<md-card> | |
<md-card-content> | |
<h2 class="example-h2">Checkbox configuration</h2> | |
<section class="example-section"> | |
<md-checkbox class="example-margin" [(ngModel)]="checked">Checked</md-checkbox> | |
<md-checkbox class="example-margin" [(ngModel)]="indeterminate">Indeterminate</md-checkbox> | |
</section> | |
<section class="example-section"> |
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
<h1>Inputs</h1> | |
<form class="example-form"> | |
<md-input-container class="example-full-width"> | |
<input md-input placeholder="Company (disabled)" disabled value="Google"> | |
</md-input-container> | |
<table class="example-full-width" cellspacing="0"><tr> | |
<td><md-input-container class="example-full-width"> | |
<input md-input placeholder="First name"> | |
</md-input-container></td> |
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
<md-grid-list cols="4" rowHeight="100px"> | |
<md-grid-tile | |
*ngFor="let tile of tiles" | |
[colspan]="tile.cols" | |
[rowspan]="tile.rows" | |
[style.background]="tile.color"> | |
{{tile.text}} | |
</md-grid-tile> | |
</md-grid-list> |
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
tiles = [ | |
{text: 'One', cols: 3, rows: 1, color: 'lightblue'}, | |
{text: 'Two', cols: 1, rows: 2, color: 'lightgreen'}, | |
{text: 'Three', cols: 1, rows: 1, color: 'lightpink'}, | |
{text: 'Four', cols: 2, rows: 1, color: '#DDBDF1'}, | |
]; |