$ docker
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 { MyApp } from './app.component'; | |
import { HomePage } from '../pages/home/home'; | |
import { InAppBrowser } from '@ionic-native/in-app-browser'; | |
@NgModule({ | |
declarations: [ | |
MyApp, | |
HomePage | |
], | |
imports: [ |
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 } from '@angular/core'; | |
import { NavController } from 'ionic-angular'; | |
import { InAppBrowser, InAppBrowserOptions} from '@ionic-native/in-app-browser'; | |
@Component({ | |
selector: 'page-home', | |
templateUrl: 'home.html' | |
}) | |
export class HomePage { | |
options : InAppBrowserOptions = { |
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
console.log('Hello boy!!'); |
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
const myElement = <h1>Hello world from Laos!</h1>; |
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
const name = 'saleumsack'; | |
const element = <h1>Sabaidee {name}</h1>; | |
ReactDom.render( | |
element, | |
document.getElementById('root') | |
); |
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
const myElement = ( | |
<div> | |
<h1>Sabaidee</h1> | |
<h2>hello newbie for JSX</h2> | |
</div> | |
); |
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
const element = <img src={user.avatarUrl} />; |
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 React, { Component } from 'react'; | |
import { AppRegistry, Image } from 'react-native'; | |
export default class Bananas extends Component { | |
render() { | |
let pic = { | |
uri: 'https://upload.wikimedia.org/wikipedia/commons/d/de/Bananavarieties.jpg' | |
}; | |
return ( | |
<Image source={pic} style={{width: 193, height: 110}}/> |
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 React, { Component } from 'react'; | |
import { AppRegistry, Text, View } from 'react-native'; | |
class Blink extends Component { | |
constructor(props) { | |
super(props); | |
this.state = {isShowingText: true}; | |
// Toggle the state every second | |
setInterval(() => { |
OlderNewer