I hereby claim:
- I am paynoattn on github.
- I am paynoattn (https://keybase.io/paynoattn) on keybase.
- I have a public key ASBQ5h-mAfe7qL-oMdUAmy5t_3CAb5ADHwM0oDUM1REQIgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import { Subject } from 'rxJs/Rx'; | |
const body = document.querySelector('body'); | |
let beginningScrollPostion = body.scrollTop, | |
scrollObserver = new Subject<string>(), | |
windowEventListender = window.addEventListener('scroll', (scrollEvent) => { | |
if (body.scrollTop > beginningScrollPostion) { | |
scrollObserver.next('down'); | |
} else { | |
scrollObserver.next('up'); |
import { Injectable } from '@angular/core'; | |
import { Http, Response } from '@angular/http'; | |
import { Observable } from 'rxjs/Observable'; | |
import { Data } from '../models'; | |
@Injectable() | |
export class DataService { | |
dataUrl: string = 'data.json'; |
import { | |
FormGroup, | |
Validators, | |
FormBuilder | |
} from '@angular/forms'; | |
import { Component } from '@angular/core'; | |
import { User } from './../../models'; | |
import { UserService } from './../../services'; |
import { Component, OnInit } from '@angular/core'; | |
import { User, UserProfile } from './models'; | |
// import the user service. This isn't important for our demo, just think of it as an async data source. | |
import { UserService } from './services'; | |
@Component({ | |
selector: 'app', | |
template: ` | |
<user-input [user]="user" (isValid)="userValid = $event"> |
angular.module('routerApp', ['ui.router']); | |
.config(function($stateProvider, $urlRouterProvider){ | |
$stateProvider | |
.state('beatles', { | |
abstract: true, | |
url: '/beatles', | |
templateUrl: 'beattles.html' | |
}) |