This file contains hidden or 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'; | |
| import { DataService } from '../../services/data.service'; | |
| @Component({ | |
| selector:'sandbox', | |
| template:` | |
| <h1>Hello World</h1> | |
| <form (submit)="onSubmit(isEdit)"> | |
| <div class="form-group"> | |
| <label>Name</label> |
This file contains hidden or 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'; | |
| @Component({ | |
| selector:'sandbox', | |
| template:` | |
| <h1>Hello World</h1> | |
| <div> | |
| <input type="text" (keyup)="fireEvent($event)" placeholder="keyup event"> | |
| </div> | |
| <div> |
This file contains hidden or 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'; | |
| @Component({ | |
| selector:'sandbox', | |
| template:` | |
| <h1>Hello World</h1> | |
| <button id="btn" (click)="fireEvent($event)">Click Event</button> | |
| <br> | |
| <button id="btn" (mouseover)="fireEvent($event)">Mouseover Event</button> | |
| <br> |
This file contains hidden or 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'; | |
| @Component({ | |
| selector:'sandbox', | |
| template:` | |
| <h1>Hello World</h1> | |
| <form novalidate #f="ngForm" (ngSubmit)="onSubmit(f)"> | |
| <div class="form-group"> | |
| <label>Name</label> | |
| <input |
This file contains hidden or 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
| startExternalMap() { | |
| if (this.location.latitude) { | |
| this.platform.ready().then(() => { | |
| Geolocation.getCurrentPosition().then((position) => { | |
| // ios | |
| if (this.platform.is('ios')) { | |
| window.open('maps://?q=' + this.location.name + '&saddr=' + position.coords.latitude + ',' + position.coords.longitude + '&daddr=' + this.location.latitude + ',' + this.location.longitude, '_system'); | |
| }; | |
| // android | |
| if (this.platform.is('android')) { |
This file contains hidden or 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 { FirebaseService } from '../../services/firebase.service'; | |
| @Component({ | |
| selector: 'app-listings', | |
| templateUrl: './listings.component.html', | |
| styleUrls: ['./listings.component.css'] | |
| }) | |
| export class ListingsComponent implements OnInit { |
This file contains hidden or 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 { AngularFireAuth } from 'angularfire2'; | |
| import { Router } from '@angular/router'; | |
| @Component({ | |
| selector: 'app-root', | |
| templateUrl: './app.component.html', | |
| styleUrls: ['./app.component.css'] | |
| }) | |
| export class AppComponent implements OnInit { |
This file contains hidden or 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 { AppRegistry } from 'react-native'; | |
| import App from './src/app'; | |
| AppRegistry.registerComponent('LoginApp', () => App); |
This file contains hidden or 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 React, { Component } from 'react'; | |
| import { Text, View } from 'react-native'; | |
| class App extends Component { | |
| render() { | |
| return ( | |
| <View> | |
| <Text>An App!</Text> | |
| </View> | |
| ); |
This file contains hidden or 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 React, { Component } from 'react'; | |
| import { Text, View } from 'react-native'; | |
| class AlbumList extends Component { | |
| render() { | |
| return ( | |
| <View> | |
| <Text> AlbumList!!! </Text> | |
| </View> | |
| ); |
NewerOlder