fyodorio / ng-hotrod

Modern starter for AngularJS + Angular Material + Vite
https://ng-hotrod.netlify.app
MIT License
43 stars 12 forks source link

feat: fix twice trigger #19

Closed ghost closed 2 years ago

ghost commented 2 years ago

Before submitting a pull request, please make sure the following is done:

  1. You have merged in the latest changes from master.
  2. Resolved any conflicts that may have happened from that merge.
  3. Ensure that you have run linting locally with npm run eslint.
    
    // eslint-disable-next-line no-unused-vars
    import angular from 'angular';
    // eslint-disable-next-line no-unused-vars
    import app from './app/app';

const component = () => { // eslint-disable-next-line angular/document-service const element = document.createElement('div');

angular.element(() => { angular.bootstrap(document, ['appModule']); });

// eslint-disable-next-line angular/document-service document.body.appendChild(component());

ghost commented 2 years ago

18