Skip to content

feat(angular): add standalone nav - #27876

Merged
thetaPC merged 17 commits into
FW-4612from
FW-4761
Aug 4, 2023
Merged

feat(angular): add standalone nav#27876
thetaPC merged 17 commits into
FW-4612from
FW-4761

Conversation

@thetaPC

@thetaPC thetaPC commented Jul 27, 2023

Copy link
Copy Markdown
Contributor

Issue number: internal


What is the current behavior?

Nav does not have Angular standalone component support.

What is the new behavior?

  • Added nav as a standalone component
  • Added a test

Does this introduce a breaking change?

  • Yes
  • No

Other information

N/A

@github-actions github-actions Bot added the package: angular @ionic/angular package label Jul 27, 2023
@thetaPC thetaPC changed the title feat(angular): add standalone and lazy nav feat(angular): add standalone nav Aug 3, 2023
@thetaPC
thetaPC changed the base branch from FW-4612 to 4612-directives August 3, 2023 23:11
@thetaPC
thetaPC force-pushed the FW-4761 branch 2 times, most recently from 413b814 to 5364723 Compare August 3, 2023 23:19
@thetaPC
thetaPC changed the base branch from 4612-directives to FW-4760 August 3, 2023 23:19
@thetaPC
thetaPC marked this pull request as ready for review August 4, 2023 00:18
@thetaPC
thetaPC requested a review from sean-perkins as a code owner August 4, 2023 00:18
@thetaPC
thetaPC requested a review from a team August 4, 2023 00:18

@sean-perkins sean-perkins left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One non-blocking comment.

import { AngularDelegate } from '../../providers/angular-delegate';
import { ProxyCmp, proxyOutputs } from '../../utils/proxy';

const NAV_DELEGATE_INPUTS = ['animated', 'animation', 'root', 'rootParams', 'swipeGesture'];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

~ I would recommend we rename these constants to be NAV_INPUTS and NAV_METHODS. This will align with other component naming conventions that don't include delegate.

The delegate language is strange and not inline with Angular conventions (this is a legacy naming decision, nothing related to your work).

We have to keep the NavDelegate class for now, since renaming it would be a breaking change, but the internal constants we can name to align with other components.

Base automatically changed from FW-4760 to FW-4612 August 4, 2023 18:57
@thetaPC
thetaPC merged commit c52a097 into FW-4612 Aug 4, 2023
@thetaPC
thetaPC deleted the FW-4761 branch August 4, 2023 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: angular @ionic/angular package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants