-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Updated Angular from 7.2.5 to 8.0 using ng update #5431 #10961
Conversation
Don't forget to add |
@ryanbrandenburg sounds good, added baseline |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of comments, nothing huge, mostly just formatting suggestions.
Over-all this looks good, I need to poke around at a running version to make sure everything still works, compare it to a default angular 8 app (we try to keep them similar) and get approval for the new version, but I suspect this is in a good place.
@@ -1,24 +1,44 @@ | |||
<header> | |||
<nav class='navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3'> | |||
<nav |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was originally going to say "one tag, one line", but I checked out some style guides and it seems that keeping things to <80 characters/line is widely agreed on. Given that I'm OK with this.
<li class="nav-item" [routerLinkActive]='["link-active"]'> | ||
<a class="nav-link text-dark" [routerLink]='["/counter"]'>Counter</a> | ||
<li class="nav-item" [routerLinkActive]="['link-active']"> | ||
<a class="nav-link text-dark" [routerLink]="['/counter']" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say this looks better as
<a class="nav-link text-dark" [routerLink]="['/counter']">
Counter
</a>
<a class="nav-link text-dark" [routerLink]='["/fetch-data"]'>Fetch data</a> | ||
<li class="nav-item" [routerLinkActive]="['link-active']"> | ||
<a class="nav-link text-dark" [routerLink]="['/fetch-data']" | ||
>Fetch data</a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above.
<title>Company.WebApplication1</title> | ||
<base href="/"> | ||
<head> | ||
<meta charset="utf-8" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
The project already had a browserslist int the ClientApp\src directory, we should remove that when we add the new one. |
@isaac2004 it looks like your baseline update commit didn't have a diff? Tests still fail due to baselines. |
@ryanbrandenburg super bizarre here, look at the change in baseline That is where the browserslist file is, yet in the CI, it is looking at the old location, thoughts? |
@isaac2004 that means that there's an extra browserslist file in the src directory (it existed before your PR). Delete ClientApp/src/browserslist and those tests should pass. |
This comment was made automatically. If there is a problem contact aspnetcore-build@microsoft.com. I've triaged the above build. I've created/commented on the following issue(s) |
@ryanbrandenburg helix failed but all else passed, let me know if you have any questions. |
This comment was made automatically. If there is a problem contact aspnetcore-build@microsoft.com. I've triaged the above build. I've created/commented on the following issue(s) |
@ryanbrandenburg can you look at this CI failure? |
@isaac2004 looks like you have some peer dependencies missing/of the wrong version:
|
@isaac2004 seems we've also run into merge conflicts from one of my PR's that updates versions. Select the angular 8 versions for conflicts in package.json and rather than trying to resolve the package-lock.json file by hand just delete it and run |
Summary of the changes
Addresses #5431