Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- showEditor(){
- let promise = new Promise((resolve)=>{
- resolve(this.add = !this.add);
- });
- promise.then(()=>{
- this.router.fragment.subscribe(fragment =>{
- const editor = document.getElementById('editor');
- if(editor) editor.scrollIntoView();
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement