angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ng serve does not consider/update pipes

Open ghost opened this issue 9 years ago • 5 comments

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.

ghost avatar Feb 02 '17 03:02 ghost

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.

Meligy avatar Feb 02 '17 09:02 Meligy

Same as #4338

ram3shyadav avatar Feb 02 '17 09:02 ram3shyadav

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

ghost avatar Feb 02 '17 18:02 ghost

Dupe of https://github.com/angular/angular-cli/issues/4338

filipesilva avatar Feb 03 '17 15:02 filipesilva

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.