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
basePath = ''; | |
files = [ | |
ANGULAR_SCENARIO, | |
ANGULAR_SCENARIO_ADAPTER, | |
'scenarios.js' | |
]; | |
autoWatch = false; |
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
button { | |
color: #ED652E; | |
background-color: #999; | |
} |
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
'use strict'; | |
var webpack = require('webpack'), | |
path = require('path'); | |
// PATHS | |
var PATHS = { | |
app: __dirname + '/app', | |
bower: __dirname + '/app/bower_components' | |
}; | |
module.exports = { | |
context: PATHS.app, |
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
'use strict'; | |
var Promise = require("bluebird") | |
, chai = require("chai") | |
, chaiAsPromised = require('chai-as-promised') | |
, should = chai.should() | |
; | |
chai.use(chaiAsPromised); |
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
<div> | |
<div [hidden]='!collapsed()' (click)="collapseAddress()"> | |
<h4>1 Address:</h4> | |
{{user.address.street}} <br /> | |
{{user.address.city}}<br /> | |
{{user.address.planet}} | |
</div> | |
<div [hidden]='collapsed()' (click)="expandAddress()"> | |
<h4>2 Address:</h4> | |
{{user.address.planet}}... |
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 {Injectable} from 'angular2/angular2'; | |
//@Injectable() | |
export class TodoItemsService { | |
items: array = []; | |
} |
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 {Injectable} from 'angular2/angular2'; | |
@Injectable() | |
export class TodoItemsService { | |
items: array = []; | |
} |
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
var fb = new Firebase('https://ng2-thatconf.firebaseio.com/todoItems/'); | |
var todoItems = []; | |
fb.on("child_added", function(snapshot) { | |
todoItems.push(snapshot.val()); | |
}) | |
export {todoItems}; |
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> | |
<title>Angular 2 Demo</title> | |
<script src="https://cdn.firebase.com/js/client/2.2.9/firebase.js"></script> | |
<script src="libs/system.js"></script> | |
<script src="config.js"></script> | |
<link rel="stylesheet" href="css/bootstrap.min.css"> | |
</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
module.exports = function() { | |
console.log('Hello Mars!') | |
} |
OlderNewer