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

  • 
    		// Instantiate a loader
    		const loader = new LDrawLoader();
    
    		// Optionally set library parts path
    		// loader.setPartsLibraryPath( path to library );
    
    		// Load a LDraw resource
    		loader.load(
    			// resource URL
    			'models/car.ldr_Packed.mpd',
    			// called when the resource is loaded
    			function ( group ) {
    
    				// Optionally, use LDrawUtils.mergeObject() from
    				// 'examples/jsm/utils/LDrawUtils.js' to merge all
    				// geometries by material (it gives better runtime
    				// performance, but construction steps are lost)
    				// group = LDrawUtils.mergeObject( group );
    
    				scene.add( group );
    
    			},
    			// called while loading is progressing
    			function ( xhr ) {
    
    				console.log( ( xhr.loaded / xhr.total * 100 ) + '% loaded' );
    
    			},
    			// called when loading has errors
    			function ( error ) {
    
    				console.log( 'An error happened' );
    
    			}
    		);
    		
    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 {Component, NgModule} from '@angular/core'
    import {render, screen} from '@testing-library/angular'
    import {ngMocks} from 'ng-mocks'
    
    @Component({
      selector: 'app-parent-component',
      template: '<app-child-component></app-child-component>',
    })
    class ParentComponent {}
    
    @Component({
      selector: 'app-child-component',
      template: '<p>Child component</p>',
    })
    class ChildComponent {}
    
    @NgModule({
      declarations: [ParentComponent, ChildComponent],
    })
    export class AppModule {}
    
    describe('ParentComponent', () => {
      it('should not render ChildComponent when shallow rendering', async () => {
        const dependencies = ngMocks.guts(null, AppModule, ParentComponent)
    
        await render(ParentComponent, dependencies)
    
        expect(screen.queryByText('Child component')).toBeNull()
      })
    })
    Docs
  • //...
    angular.module('app', []);
    angular.element(document).ready(() => angular.bootstrap(document, ['app']));
    
    
    
    //...
    
    /vmware/clarity mit
  • import angular from 'angular';
    import 'angular-translate';
    
    import component from './dedicatedCloud-user-add.component';
    
    const moduleName = 'ovhManagerDedicatedCloudUserAdd';
    
    angular
      .module(moduleName, [])
      .component('dedicatedCloudUserAdd', 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