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 'angular2/core'; | |
import {RouteConfig, ROUTER_DIRECTIVES} from 'angular2/router'; | |
import {ViewOneComponent} from "./viewone.component"; | |
import {ViewTwoComponent} from "./viewtwo.component"; | |
@Component({ | |
selector : 'my-app', | |
template : `<nav> | |
<a [routerLink]="['ViewOne']">View One</a> |
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 {bootstrap} from 'angular2/platform/browser'; | |
import {AppComponent} from './app.component'; | |
import {ROUTER_PROVIDERS} from 'angular2/router'; | |
bootstrap(AppComponent, [ | |
ROUTER_PROVIDERS | |
]); |
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
<html> | |
<head> | |
<title>Angular 2 Basics - Routing</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<base href="/"> | |
<!-- 1. Load libraries --> | |
<!-- IE required polyfills, in this exact order --> | |
<script src="node_modules/es6-shim/es6-shim.min.js"></script> | |
<script src="node_modules/systemjs/dist/system-polyfills.js"></script> | |
<script src="node_modules/angular2/es6/dev/src/testing/shims_for_IE.js"></script> |
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 'angular2/core'; | |
@Component({ | |
selector : 'view-two', | |
template : `This is view two` | |
}) | |
export class ViewTwoComponent {} |
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 'angular2/core'; | |
@Component({ | |
selector : 'view-one', | |
template : 'This is view one' | |
}) | |
export class ViewOneComponent {} |
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 'angular2/core'; | |
import {RouteConfig, ROUTER_DIRECTIVES} from 'angular2/router'; | |
import {ViewOneComponent} from "./viewone.component"; | |
import {ViewTwoComponent} from "./viewtwo.component"; | |
@Component({ | |
selector : 'my-app', | |
template : `<nav> | |
<a [routerLink]="['ViewOne']">View One</a> |
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 {bootstrap} from 'angular2/platform/browser'; | |
import {AppComponent} from './app.component'; | |
import {ROUTER_PROVIDERS} from 'angular2/router'; | |
bootstrap(AppComponent, [ | |
ROUTER_PROVIDERS | |
]); |
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
<html> | |
<head> | |
<title>Angular 2 Basics - Routing</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<base href="/"> | |
<!-- 1. Load libraries --> | |
<!-- IE required polyfills, in this exact order --> | |
<script src="node_modules/es6-shim/es6-shim.min.js"></script> | |
<script src="node_modules/systemjs/dist/system-polyfills.js"></script> | |
<script src="node_modules/angular2/es6/dev/src/testing/shims_for_IE.js"></script> |
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
angular.module('starter', ['ionic', 'ngCordova']) | |
.run(function($ionicPlatform) { | |
$ionicPlatform.ready(function() { | |
//you app code goes here | |
}); | |
}) | |
.controller('FileController', function($scope, $cordovaCamera, $cordovaFile) { | |
$scope.fileName = ""; | |
$scope.uploadPicture = function() { |
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> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> | |
<title></title> | |
<link href="lib/ionic/css/ionic.css" rel="stylesheet"> | |
<link href="css/style.css" rel="stylesheet"> |