HM-30. Добавлен класс Компонент, поправлены api, внедрен тестовый ком… (#5)
This commit is contained in:
13
src/app.js
13
src/app.js
@ -1,3 +1,14 @@
|
||||
import './app.css';
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
import 'bootstrap';
|
||||
import 'bootstrap';
|
||||
|
||||
// ! TODO: 5-14 строчки удалить, после теста компонента
|
||||
import TestModal from './components/test-modal';
|
||||
import TestButton from './components/test-button';
|
||||
|
||||
const testModal = new TestModal();
|
||||
const testButton = new TestButton();
|
||||
|
||||
testButton.subscribe('click', () => {
|
||||
testModal.show();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user