当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript angularfire2.firebaseAuthConfig函数代码示例

本文整理汇总了TypeScript中angularfire2/angularfire2.firebaseAuthConfig函数的典型用法代码示例。如果您正苦于以下问题:TypeScript firebaseAuthConfig函数的具体用法?TypeScript firebaseAuthConfig怎么用?TypeScript firebaseAuthConfig使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了firebaseAuthConfig函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: bootstrap

document.addEventListener('deviceready', () => {
  bootstrap(EventFinderApp, 
[
  FIREBASE_PROVIDERS,
  ROUTER_PROVIDERS,
  defaultFirebase('https://sizzling-heat-4438.firebaseio.com'),
  //storageBucket('gs://sizzling-heat-4438.appspot.com'),
  firebaseAuthConfig({
    method: AuthMethods.Redirect,
    provider: AuthProviders.Password
  }), 
  MyUsersService, 
  MyEventsService
]);
}, false);
开发者ID:danielbodlund,项目名称:EventFinderAngular2,代码行数:15,代码来源:main.ts

示例2: main

export function main(): Promise<any> {

  return bootstrap(AppComponent, [
    ...PLATFORM_PROVIDERS,
    ...ENV_PROVIDERS,
    ...AUTH_PROVIDERS,
    ...FIREBASE_PROVIDERS,
    defaultFirebase({
      apiKey: 'AIzaSyARs_f15bn2Zb0yBOB_MifZgufHTRzcY8A',
      authDomain: 'ufc-oak.firebaseapp.com',
      databaseURL: 'https://ufc-oak.firebaseio.com',
      storageBucket: 'ufc-oak.appspot.com'
    }),
    firebaseAuthConfig({
      provider: AuthProviders.Facebook,
      method: AuthMethods.Popup,
      scope: ['manage_pages', 'publish_pages']
    }),
    ...APP_PROVIDERS,
  ])
  .then(decorateComponentRef)
  .catch(err => console.error(err));

}
开发者ID:uhurufurniture-oak,项目名称:ufc-client,代码行数:24,代码来源:main.browser.ts

示例3: enableProdMode

import {RouteConfig} from '@angular/router-deprecated';
import {MyUsersService} from './app/my-users.service';
import {MyEventsService} from './app/my-events.service';
import {
  FIREBASE_PROVIDERS, 
  defaultFirebase, 
  AngularFire, 
  firebaseAuthConfig, 
  AuthMethods, 
  AuthProviders
} from 'angularfire2/angularfire2'; 

if (environment.production) {
  enableProdMode();
}

//document.addEventListener('deviceready', () => {
  bootstrap(EventFinderApp, 
[
  FIREBASE_PROVIDERS,
  ROUTER_PROVIDERS,
  defaultFirebase('https://sizzling-heat-4438.firebaseio.com'),
  firebaseAuthConfig({
    method: AuthMethods.Redirect,
    provider: AuthProviders.Password
  }), 
  MyUsersService, 
  MyEventsService
]);
//}, false);
开发者ID:Kungkrist,项目名称:EventFinder,代码行数:30,代码来源:main.ts

示例4: defaultFirebase

import {FIREBASE_BASE_URL} from './firebase.constants';
import {FIREBASE_PROVIDERS, AuthMethods, firebaseAuthConfig, defaultFirebase} from 'angularfire2/angularfire2';

import {Auth} from './auth.service';
import {UsersStore} from './users.store.service';
import {AuthProviders} from 'angularfire2/angularfire2';

export const APP_FIREBASE_PROVIDERS = [
  FIREBASE_PROVIDERS,
  defaultFirebase(FIREBASE_BASE_URL),
  firebaseAuthConfig({
    method: AuthMethods.Password,
    provider: AuthProviders.Password,
  })
];

export const APP_AUTH_PROVIDERS = [
  Auth, UsersStore
];
开发者ID:arcava,项目名称:ng2-euro-bets,代码行数:19,代码来源:index.ts

示例5: bootstrap

        console.warn("DISPATCHED ACTION: ", val);
    });
};
const stateLog: Middleware = (state: any) => {
    return state.do((val: any) => {
        console.info("NEW STATE: ", val);
    });
};

bootstrap(WineCellarApp, [
    ROUTER_PROVIDERS,
    HTTP_PROVIDERS,
    FIREBASE_PROVIDERS,
    provide(APP_BASE_HREF, {useValue: "/"}),
    provide(LocationStrategy, {useClass: HashLocationStrategy}),
    defaultFirebase({
        apiKey: "AIzaSyAq0nePnAWWJ_74KoCa8VIKrBkxqCB3eoU",
        authDomain: "winecellar-50a24.firebaseapp.com",
        databaseURL: "https://winecellar-50a24.firebaseio.com",
        storageBucket: ""
    }),
    firebaseAuthConfig({
        provider: AuthProviders.Password,
        method: AuthMethods.Password,
        remember: "default",
        scope: ["email"]
    }),
    provideStore(store),
    usePreMiddleware(actionLog),
    usePostMiddleware(stateLog)
]);
开发者ID:brechtbilliet,项目名称:winecellar-firebase,代码行数:31,代码来源:index.ts


注:本文中的angularfire2/angularfire2.firebaseAuthConfig函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。