Closed ghost closed 2 years ago
Before submitting a pull request, please make sure the following is done:
master
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');
element.setAttribute('ng-app', 'appModule'); //repeat with angular.bootstrap, so should remove this line element.className = 'app';
angular.bootstrap
element.innerHTML = `
`;
return element; };
angular.element(() => { angular.bootstrap(document, ['appModule']); });
// eslint-disable-next-line angular/document-service document.body.appendChild(component());
Before submitting a pull request, please make sure the following is done:
master
.npm run eslint
.const component = () => { // eslint-disable-next-line angular/document-service const element = document.createElement('div');
element.setAttribute('ng-app', 'appModule'); //repeat with
angular.bootstrap
, so should remove this line element.className = 'app';element.innerHTML = `
`;
return element; };
angular.element(() => { angular.bootstrap(document, ['appModule']); });
// eslint-disable-next-line angular/document-service document.body.appendChild(component());