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
//our root app component | |
import {Component, NgModule} from '@angular/core' | |
import {BrowserModule} from '@angular/platform-browser' | |
import {HttpModule, Http} from '@angular/http'; | |
import 'rxjs/add/operator/do'; | |
import 'rxjs/add/observable/timer'; | |
import 'rxjs/add/operator/map'; | |
import 'rxjs/add/operator/mergeMap'; | |
import 'rxjs/add/operator/retryWhen'; | |
import 'rxjs/add/operator/delay'; |
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
// JS array equivalents to C# LINQ methods - by Dan B. | |
// First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version): | |
// Here's a simple array of "person" objects | |
var people = [ | |
{ name: "John", age: 20 }, | |
{ name: "Mary", age: 35 }, | |
{ name: "Arthur", age: 78 }, | |
{ name: "Mike", age: 27 }, |
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 adalO365CorsClient { | |
'use strict'; | |
export class Adal { | |
/** | |
* Configures ADAL JS with required info for the registered app in Azure AD. | |
* | |
* @param $httpProvider Angular's $httpProvider (needed by ADAL) | |
* @param adalSettings Settings for ADAL | |
* @param adalProvider ADAL JS' Angular provider. |