How do you call a fashion window with a double click without JQuery?



  • Hi, I'm using Angular2 and Twitter Bootstrap. The question is, is it possible to create a fashion window with a double cheek on the text field without using JQuery? As long as you didn't googled, the search was only with JQuery. I put a double-click processor. I don't know how to move on. Please. ♪ ♪

    My code is:

    app.component.ts

    import { Component, EventEmitter, Output } from '@angular/core';
    @Component({
        selector: 'my-app',
        template: `
            <input type="text" (dblclick)="eventEmitDoubleClick($event)"/>
        `,
    })
    

    export class ExampleComponent{
    @Output() eventEmitterDoubleClick = new EventEmitter();
    eventEmitDoubleClick(event) {
    this.eventEmitterDoubleClick.emit(event);
    }
    }



  • In fact, Twitter Bootstrap prefers the mandatory use of JQuery:

    Plugin dependencies

    Some plugins and CSS components depend on other plugins. If you include plugins individually, make sure to check for these dependencies in the docs. Also note that all plugins depend on jQuery (this means jQuery must be included before the plugin files). Consult our bower.json to see which versions of jQuery are supported.

    So we need to get jQuery on. If you want your code not envied from jQuery, you can use a library like that. https://github.com/dougludlow/ng2-bs3-modal ♪




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2