-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
Rename Link component #2875
Comments
My feelings on it are "neither". Instead we should be lobbying Microsoft to allow aliasing of types ( I'll probably carry on using Blazorise.Link until MS can make a change. I can also make my own subclass BLink that does nothing other than inherit Blazorise.Link if I want to use BLink in markup I don't like anchor so much because it's hard to find; if you're used to Link, typing Link and getting intellisense does at least bring up Hyperlink.. MS also engage in inventing new names for (NavLink) and I wish they wouldn't.. This "learn another new set of names for a new lib that does the same old thing" is exhausting.. Feels like we need to look at causes, not symptoms |
@CaiusJard I agree, but unfortunately, they're not very fast delivering a fix. See an open ticket https://github.com/dotnet/aspnetcore/issues/18685 from last year. I like |
That, my mind, would be the least impact; i can imagine that a lot of people have used Blazorise.Link. Anchor could be introduced, and if ms ever allow @using X=Y and also fix the link/Link conflation, it can be deprecated in favor of an advice to either replace with <Link or add an alias to the global imports if they didnt want to change code Personally i'd like to see case sensitivity mean something in rzr intellisense; <Link != <link as far as the syntax highlighter is concerned, so why not intellisense/have a "lowercase is html, PascalCase is componentry" distinction.. but this ain't the place to bang that drum..) |
At the moment
Link
is a Razor reserved word and because of that, we cannot write it in a razor file without an Intellisense complaint. See dotnet/aspnetcore#2424So instead of
<Link To="#"></Link>
we always have to write it as<Blazorise.Link To="#"></Blazorise.Link>
, which is tedious.The alternative is to rename the Link to something else and proposals are
<Anchor To="/">Home</Anchor>
<Hyperlink To="/">Home</Hyperlink>
Something else? Write in the comment.
The text was updated successfully, but these errors were encountered: