How to use where clause in Knex
Create refunds with Stripe
Load HTML with Cheerio
How to send POST request with Axios
Find intersection of array in Lodash
Powered by Official white Bloop logo with a period

Terms / Privacy / Search / Support

  • import { Injectable } from '@angular/core';
    import { HttpClient } from '@angular/common/http';
    
    @Injectable()
    export class ConfigService {
      constructor(private http: HttpClient) { }
    }
    Docs
  • import { Injectable } from '@angular/core';
    
    @Injectable({
      providedIn: 'root',
    })
    export class HeroService {
    
      constructor() { }
    
    }
    Docs
  • import angular from 'angular';
    import 'angular-translate';
    import '@ovh-ux/ui-kit';
    
    import component from './notebook-attach.component';
    
    const moduleName = 'ovhManagerPciProjectNotebooksNotebookAttach';
    
    angular
      .module(moduleName, ['oui', 'pascalprecht.translate'])
      .component('notebookAttach', component)
      .run(/* @ngTranslationsInject:json ./translations */);
    
    export default moduleName;
    
    /ovh/manager BSD-3-Clause
  • import { Inject, Injectable, InjectionToken } from '@angular/core';
    
    export const BROWSER_STORAGE = new InjectionToken<Storage>('Browser Storage', {
      providedIn: 'root',
      factory: () => localStorage
    });
    
    @Injectable({
      providedIn: 'root'
    })
    export class BrowserStorageService {
      constructor(@Inject(BROWSER_STORAGE) public storage: Storage) {}
    
      get(key: string) {
        return this.storage.getItem(key);
      }
    
      set(key: string, value: string) {
        this.storage.setItem(key, value);
      }
    
      remove(key: string) {
        this.storage.removeItem(key);
      }
    
      clear() {
        this.storage.clear();
      }
    }
    Docs
  • import angular from 'angular';
    import '@ovh-ux/manager-core';
    import '@uirouter/angularjs';
    import 'angular-translate';
    
    import ngAtInternetUiRouterPlugin from '@ovh-ux/ng-at-internet-ui-router-plugin';
    import { OnboardingLayoutHelper } from '@ovh-ux/manager-ng-layout-helpers';
    
    import component from './component';
    import routing from './routing';
    
    const moduleName = 'ovhManagerAnthosOnboarding';
    
    angular
      .module(moduleName, [
        'ovhManagerCore',
        'pascalprecht.translate',
        'ui.router',
        ngAtInternetUiRouterPlugin,
        OnboardingLayoutHelper,
      ])
      .config(routing)
      .component('anthosOnboarding', component)
      .run(/* @ngTranslationsInject:json ./translations */);
    
    export default moduleName;
    
    /ovh/manager BSD-3-Clause
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples