question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

template strategy & usage strategy need more definition

See original GitHub issue

🐞 bug report

Affected Package

@angular/core

Is this a regression?

no

Description

Upon using ng update to move to 8.0.0-rc.2 (or later), I get the following prompt:

------ Static Query migration ------
            In preparation for Ivy, developers can now explicitly specify the
            timing of their queries. Read more about this here:
            https://github.com/angular/angular/pull/28810
            
            There are two available migration strategies that can be selected:
              • Template strategy  -  migration tool (short-term gains, rare corrections)
              • Usage strategy  -  best practices (long-term gains, manual corrections)
            For an easy migration, the template strategy is recommended. The usage
            strategy can be used for best practices and a code base that will be more
            flexible to changes going forward.
? What migration strategy do you want to use?

This prompt doesn’t include enough information for me to decide, and the linked PR doesn’t talk about these strategies. It’s unclear what the differences are or what changes will be made.

🌍 Your Environment

Angular Version:


Angular CLI: 8.0.0-rc.2
Node: 12.1.0
OS: linux x64
Angular: 8.0.0-rc.2
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
... service-worker

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.800.0-rc.2
@angular-devkit/build-angular     0.800.0-rc.2
@angular-devkit/build-optimizer   0.800.0-rc.2
@angular-devkit/build-webpack     0.800.0-rc.2
@angular-devkit/core              8.0.0-rc.2
@angular-devkit/schematics        8.0.0-rc.2
@angular/cdk                      8.0.0-rc.0
@angular/material                 8.0.0-rc.0
@ngtools/webpack                  8.0.0-rc.2
@schematics/angular               8.0.0-rc.2
@schematics/update                0.800.0-rc.2
rxjs                              6.5.1
typescript                        3.4.5
webpack                           4.30.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
karacommented, May 1, 2019

Agree, we need to expand the messaging.

Note that we should only be prompting if users have ViewChild/ContentChild queries.

2reactions
devversioncommented, May 15, 2019

The documentation should have code examples for the two strategies.

👍 Examples are definitely a good idea.

Should this be marked as a release blocker?

I’d say so. We want to make the upgrade as easy as possible… and a confusing prompt with not much context doesn’t help with that 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Marketing Strategy Templates — Set Up Your ... - AHA.io
The free marketing plan template downloads included in this guide will help you craft the perfect marketing strategy. Customize them to fit your...
Read more >
The last business strategy template you'll ever need
To put it simply, a business strategy template is a cheat sheet for achieving your strategic goals.
Read more >
The 15 Most Popular Strategic Planning Templates On Our Site
One important thing to remember: Using templates doesn't mean using someone else's strategy. Rather, it means building your own strategic plan using the ......
Read more >
Marketing Strategy: Templates, Definitions, Importance ...
Every business needs a marketing strategy; however, creating one from scratch is easier said than done. Fortunately, you have the power to ...
Read more >
Marketing strategy template for any size marketing team
Create a marketing strategy template to streamline your marketing efforts without sacrificing consistency. Learn how today.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found