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

Exception when pipe is added #41

Open
frankbenoit opened this issue Jan 9, 2016 · 3 comments
Open

Exception when pipe is added #41

frankbenoit opened this issue Jan 9, 2016 · 3 comments

Comments

@frankbenoit
Copy link

Hi
please have a look at these modifcations:
https://github.com/frankbenoit/angular2-authentication-sample/commit/5910ed3f19a45a84e338463ac1a5cee0fc97f477

I don't know if this is a problem in my pipe usage, in the auth sample code, or in angular2?!

I added a list of text item and a pipe to 'home'.

Good cases:

  1. If logged in, home can be opened normally.
  2. Before having the pipe, when not logged in; opening 'home' directly,
    the routeroutlet navigates to 'login'.

Now the bad case:
Now with the pipe, not logged in and opening 'home' directly, an exception happens and
the app crashes

Can you help?

@frankbenoit
Copy link
Author

to change between good case and bad case, just change in home.html the line 15:

<li *ngFor="#item of items          ">{{item}}</li>
<li *ngFor="#item of items | orderBy">{{item}}</li>

@tobika
Copy link

tobika commented Jan 20, 2016

Hi,
I also work on a testing project where I added angular2-jwt. I have the exactly the same error like @frankbenoit

Tried to add pipe import in several places to see if it changes behaviour. Still the error.

@chenkie
Copy link
Contributor

chenkie commented Feb 26, 2016

Would you be able to post the stack trace here? What is the exception that is thrown?
Thanks!

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

3 participants