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

ng serve does not consider/update pipes #4336

Closed
ghost opened this issue Feb 2, 2017 · 5 comments
Closed

ng serve does not consider/update pipes #4336

ghost opened this issue Feb 2, 2017 · 5 comments

Comments

@ghost
Copy link

ghost commented Feb 2, 2017

Angular-CLI don't update pipes on save.

OS?

Windows 10 64bits

Versions.

1.0.0-beta.26

Repro steps.

Add new pipe to your project by doing ng g p pipename, launch app with ng serve then update your pipe in your editor/IDE and save it. Angular-CLI will recompile the app but won't consider the pipe's changes.

@Meligy
Copy link
Contributor

Meligy commented Feb 2, 2017

I just tried with beta.29 and this seems to work fine.

Steps:

ng new sampleapp
cd sampleapp
ng g pipe sample

The modified sample.pipe.ts:

transform(value: any, args?: any): any
  return value + ' add 123';
}

Then modified app.component.html:

<h1>
  {{title | sample}}
</h1>

Then ran ng serve, and opened Chrome.

Then, while still serving, changed sample.pipe.ts to:

transform(value: any, args?: any): any
  return value + ' add 123 456';
}

And switched to Chrome.. The browser has already refreshed and I could see the new pipe value.

@ram3shyadav
Copy link

Same as #4338

@ghost
Copy link
Author

ghost commented Feb 2, 2017

@Meligy Just installed beta 29 and followed your steps, but the error still occurs

@filipesilva
Copy link
Contributor

Dupe of #4338

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants