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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<meta name="theme-color" content="#000000"> | |
<link rel="manifest" href="/manifest.json"> | |
<link rel="shortcut icon" href="/favicon.ico"> | |
<title>React App</title> |
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, PropTypes } from 'react'; | |
import MediaQuery from './media-query'; | |
class Example extends Component { | |
render() { | |
return ( | |
<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
#!/bin/sh | |
#Your app id which can be found in your config.xml file (widget id) | |
app=com.ionicframework.myNewApp | |
pathToAPK=platforms/android/build/outputs/apk/android-debug.apk | |
echo "Running Ionic Build" | |
ionic build |
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
//Directive | |
angularApp.directive('angularOdometer', function () { | |
return { | |
restrict: 'A', | |
link: function(scope, element, attrs) { | |
//Creates new instance of odometer for the element | |
new Odometer({el: element[0], value: scope[attrs.odometer]}); | |
//Watch for changes and update the element value (causing odometer to redraw) |
NewerOlder