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

template parse error #11

Open
lafiza opened this issue Aug 4, 2017 · 4 comments
Open

template parse error #11

lafiza opened this issue Aug 4, 2017 · 4 comments

Comments

@lafiza
Copy link

lafiza commented Aug 4, 2017

Getting the below error when using in webpack Angular cli project
'notification-icon' is not a known element:

  1. If 'notification-icon' is an Angular component, then verify that it is part of this module.
  2. If 'notification-icon' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

Coding:::::-->

appComponent.ts:
Added --->
import 'angular' ;
import 'angular-animate';
import 'angular-notification-icons';
import 'angular-notification-icons/dist/angular-notification-icons.css';

And in HTML , i have -->

Workflow

@jacob-meacham
Copy link
Owner

Hi @lafiza, sorry to hear that you're having issues! What version of this plugin and what version of angular are you using?

Thanks!

@lafiza
Copy link
Author

lafiza commented Aug 7, 2017

angular - 4
'angular-notification-icons' --> version - 0.4.4

@jacob-meacham
Copy link
Owner

@lafiza this plugin only supports angular 1, not angular 2+. I can look into upgrading this, but you may be able to get going with ngUpgrade (see for example https://blog.thoughtram.io/angular/2015/10/24/upgrading-apps-to-angular-2-using-ngupgrade.html)

@lafiza
Copy link
Author

lafiza commented Aug 22, 2017

hi Jacob,

Was this component upgraded ?

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