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

error when using it with angular 4 #84

Open
ma1rius opened this issue Nov 3, 2017 · 1 comment
Open

error when using it with angular 4 #84

ma1rius opened this issue Nov 3, 2017 · 1 comment

Comments

@ma1rius
Copy link

ma1rius commented Nov 3, 2017

this is what i get whe tryng to add angular 4 material Uncaught Error: Template parse errors:
'lf-ng-md-file-input' is not a known element:

  1. If 'lf-ng-md-file-input' is an Angular component, then verify that it is part of this module.
  2. If 'lf-ng-md-file-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
    [ERROR ->]<lf-ng-md-file-input name="files" lf-files="ctrl.files" lf-required lf-maxcount="1" lf-mimetype="audi"): ng:///AppModule/UploadComponent.html@1:4
    'md-button' is not a known element:
  3. If 'md-button' is an Angular component, then verify that it is part of this module.
  4. If 'md-button' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
    Mimetype error.
@Puff12138
Copy link

got the same problem as yours, that's because this is a [AngularJS] module, which use .js file(JavaScript), while [angular 2/4] use .ts(TypeScript) and a different concept for Module.

i'm trying to find the way to "use angularjs module in angular2 project", as far as i know by now, we should "upgrade" the module and add it as <script> in index.html, here are 2 links for us to get some ideas:
https://stackoverflow.com/questions/35237319/use-angularjs-angular1-module-from-angular2-project
https://stackoverflow.com/questions/34401354/angular2-beta-bootstrapping-http-providers-unexpected-token/34402203#34402203

and keep in touch if one of us get the clear answer

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