ngx-cookie-backend
Version:
Implementation of Angular 1.x $cookies service to Angular
24 lines (23 loc) • 1.13 kB
TypeScript
import { ModuleWithProviders } from '@angular/core';
import { CookieModule, CookieOptions } from 'ngx-cookie';
import * as i0 from "@angular/core";
import * as i1 from "ngx-cookie";
export declare class CookieBackendModule {
/**
* Use this method in your root module to provide the CookieService
*/
static withOptions(options?: CookieOptions): ModuleWithProviders<CookieModule>;
/**
* @deprecated use `CookieBackendModule.withOptions()` instead
* Use this method in your root module to provide the CookieService
*/
static forRoot(options?: CookieOptions): ModuleWithProviders<CookieModule>;
/**
* @deprecated use `CookieBackendModule.withOptions()` instead
* Use this method in your other (non root) modules to import the directive/pipe
*/
static forChild(options?: CookieOptions): ModuleWithProviders<CookieModule>;
static ɵfac: i0.ɵɵFactoryDeclaration<CookieBackendModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<CookieBackendModule, never, [typeof i1.CookieModule], never>;
static ɵinj: i0.ɵɵInjectorDeclaration<CookieBackendModule>;
}