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

I got an issue with Angular 7 with the Frameworks: Inonic 4/Cordova #154

Open
Davicito81 opened this issue Jul 19, 2019 · 0 comments
Open

Comments

@Davicito81
Copy link

Davicito81 commented Jul 19, 2019

Hello dear community of ngx-Facebook.

I'm trying to implement the ngx-favebook libary according to the instruction on:
https://github.com/zyra/ngx-facebook
in my project with Angular 7.3.9, Ionic 4.

First I allready have installed the facebook sdk with the following command line before:
npm i --save ngx-facebook to my Ionic 4 project

Then I have allready added this lines to my app.module.ts
import { FacebookModule } from 'ngx-facebook'; ... imports:[ ... FacebookModule.forRoot() ],

and this to my dashboardtab.page.ts
`
import { FacebookService, InitParams } from 'ngx-facebook';

export class DashboardtabPage{

constructor (private fbService: FacebookService){
let InitParams: InitParams = {
    appId            : 'xxxxxxx',  
    xfbml            : true, 
    version         : 'v3.3'
};
this.fbService.init(InitParams);   

}
}
`
Now when I'll use fb-video tags in the template
I got an issue when I'll start my projekt with the following error message:

ERROR Error: "Uncaught (in promise): Error: Template parse errors:
Can't bind to 'href' since it isn't a known property of 'fb-video'.

  1. If 'fb-video' is an Angular component and it has 'href' input, then verify that it is part of this module.
  2. If 'fb-video' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
  3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("
    <fb-video [ERROR ->]href="{{fbPost.link}}">
    //$(document).ready(function("): ng:///DashboardtabPageModule/DashboardtabPage.html@27:18
    'fb-video' is not a known element:
  4. If 'fb-video' is an Angular component, then verify that it is part of this module.
  5. If 'fb-video' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
    [ERROR ->]
    //$(document).ready"): ng:///DashboardtabPageModule/DashboardtabPage.html@27:8

Can any one help?

Best Regards

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

1 participant