Skip to content

Use Date Pipe for Angular Client #39274

Closed as not planned
Closed as not planned

Description

@giuliohome

You should be using a date pipe in fetch-data.component.html at line 18, the fix is shown below

    <tr *ngFor="let forecast of forecasts">
      <td>{{ forecast.date | date }}</td>

or complete with time part

    <tr *ngFor="let forecast of forecasts">
      <td>{{ forecast.date | date :'medium' }}</td>

It looks quite better - either just a date

image

or date and time -

image

than the original vanilla version in ISO format

image


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

  1. serpent5 commented on Dec 17, 2021

    @serpent5
    Contributor
  2. transferred this issue fromon Dec 17, 2021
  3. added this to the Backlog milestone on Jan 3, 2022
  4. added
    enhancementThis issue represents an ask for new feature or an enhancement to an existing one
    on Jan 3, 2022
  5. mkArtakMSFT commented on Jan 3, 2022

    @mkArtakMSFT
    Contributor

    Thanks for contacting us. @giuliohome feel free to send us a PR with the proposal.
    We'll get someone to review it next week.

  6. giuliohome commented on Jan 3, 2022

    @giuliohome
    Author

    At the moment I'm experiencing an issue with https and angular proxy: since it seems locked/limited in angular and unrelated to this specific issue here, I ignore it (*) by omitting the first https url from applicationUrl in launchSettings.json and I proceed with the test of this PR.

    (*) I will open a different issue for this maybe, just in case it will be needed... I read that you recently introduced this new proxy approach... I don't know why it doesn't work for me (or, well, I guess it doesn't accept the redirect to https without a valid certificate), so, again, I detour it for now, but I remain perplexed, not only about the https proxy, but also about the landing page, the fact that aspnet core redirects to a new ng serve process... Opening the starting app URL in another tab in the browser triggers another ng serve? That sounds wrong.

  7. added and removed
    area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates
    on Aug 25, 2023
  8. mkArtakMSFT commented on Oct 10, 2023

    @mkArtakMSFT
    Contributor

    As you may have seen already, we have decided to remove the SPA project templates from the .NET 8 SDK. As a result, we will not be taking any new changes here for non-servicing related needs.

  9. ghost locked as resolved and limited conversation to collaborators on Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-ui-renderingIncludes: MVC Views, Razor PagesenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-spafeature-templates

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions