Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component not showing #3

Open
quardz opened this issue Jun 6, 2020 · 2 comments
Open

Component not showing #3

quardz opened this issue Jun 6, 2020 · 2 comments
Assignees

Comments

@quardz
Copy link

quardz commented Jun 6, 2020

Angular 9, There is no error/warning in console log, component not appearing in inspect element.
What would be wrong.
My ts file :

import { Component, OnInit } from '@angular/core';

import { serialize, parse } from '@wordpress/blocks'
import { NgGutenbergModule,IBlock } from 'ng-gutenberg'

@component({
selector: 'app-testcomp',
templateUrl: './testcomp.component.html',
styleUrls: ['./testcomp.component.scss']
})
export class TestcompComponent implements OnInit {

blocks: IBlock[];

constructor() { }

onBlocksChanged(item: IBlock[]) {
var html = serialize(item);
}

ngOnInit(): void {
}

}

// My HTML file
<block-editor-provider [blocks]="blocks" contentClass="gutenberg__editor">

@arnvanhoutte
Copy link
Owner

Did you import @import "ng-gutenberg/ng-gutenberg" in your styles?

@arnvanhoutte arnvanhoutte self-assigned this Jun 6, 2020
@quardz
Copy link
Author

quardz commented Jun 6, 2020

Error throws If i import styles.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants