Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 讲述自定义元素_Html_Facebook Javascript Sdk_Angular7 - Fatal编程技术网

Html 讲述自定义元素

Html 讲述自定义元素,html,facebook-javascript-sdk,angular7,Html,Facebook Javascript Sdk,Angular7,我得到这个错误: Uncaught Error: Template parse errors: ':fb:login-button' is not a known element: 1. If ':fb:login-button' is an Angular component, then verify that it is part of this module. 2. If ':fb:login-button' is a Web Component then a

我得到这个错误:

   Uncaught Error: Template parse errors:
    ':fb:login-button' is not a known element:
    1. If ':fb:login-button' is an Angular component, then verify that it is part of this module.
    2. If ':fb:login-button' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("data-button-type="login_with" data-auto-logout-link="false" data-use-continue-as="false"></div>
        [ERROR ->]<fb:login-button scope="public_profile,email" onlogin="checkLoginState();"></fb:login-button>

      </ma"): ng:///AppModule/MyNavComponent.html@27:4
        at syntaxError (compiler.js:2427)
        at TemplateParser.push../node_modules/@angular/compiler/fesm5/compiler.js.TemplateParser.parse (compiler.js:20311)
        at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._parseTemplate (compiler.js:25857)
        at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileTemplate (compiler.js:25844)
        at compiler.js:25787
        at Set.forEach (<anonymous>)
        at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileComponents (compiler.js:25787)
        at compiler.js:25697
        at Object.then (compiler.js:2418)
        at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModuleAndComponents (compiler.js:25696)
未捕获错误:模板分析错误:
“:fb:login button”不是已知元素:
1.如果“:fb:login button”是一个角度组件,则验证它是否是此模块的一部分。
2.如果“:fb:login button”是Web组件,则将“CUSTOM_ELEMENTS_SCHEMA”添加到此组件的“@NgModule.schemas”以抑制此消息。(“数据按钮type=“login\u with”data auto logout link=“false”data use continue as=“false”>
[错误->]

我不知道你是从哪里得到这些代码的,但是生成器在下面生成了使用
的代码,下面的例子也一样。@04FS我也有同样的问题,提到的代码直接来自他们网站上的facebook教程。我猜这是某种javascript技巧,与angula不兼容r、 您是否尝试在app.module中添加自定义元素模式?要告诉angular您使用的是angular之外的组件,我不知道代码是从哪里来的,但“生成器”下生成的代码使用了
,页面下面的示例也会这样做。@04FS我遇到了同样的问题,提到的代码是直接生成的来自他们网站上的facebook教程。我猜这是某种javascript技巧,与angular不兼容。您是否尝试在app.module中添加自定义元素\u模式?告诉angular您正在使用angular之外的组件
<fb:login-button scope="public_profile,email" onlogin="checkLoginState();"></fb:login-button>