aspnetcore/src/Microsoft.AspNetCore.Blazor...
Ryan Nowak 15ba614e6f Remove old workaround @onclick and @bind
This change removes support for the old syntax used for event handlers
and two-way binding.

See the relevant issues for details on the new features and
improvements:

bind https://github.com/aspnet/Blazor/issues/409
event handlers https://github.com/aspnet/Blazor/issues/503

Along with this change we've removed a few additional things Blazor
could do that aren't part of Razor's usual syntax.

----

The features that was used to make something like:
```
<button @onclick(...) />
```

is an expression that's embedded in a an element's attribute. This
feature might be useful in the future if we want to support 'splatting'
arbitrary attributes into a tag, but the runtime support for this isn't
accessible outside the Blazor core.

----

The features that implement:
```
<button onclick=@{ } />
```

have been removed in favor of a better design for lambdas, method group
conversions and other things for event handler attributes.

use `<button onclick=@(x => ...} />` instead.

We think is a better approach in general, because we want the app
developer to write and see the parameter list.

----

Both syntactic features that have been removed have dedicated error
messages in the compiler. If you're porting old code it should help you
figure out what to do.
2018-04-10 16:54:15 -07:00
..
Properties Get rid of RazorCompiler 2018-03-14 11:23:40 +00:00
BindLoweringPass.cs Add event handlers as tag helpers 2018-04-06 13:00:04 -07:00
BindTagHelperDescriptorProvider.cs Corrects spelling of some comments 2018-04-02 12:34:08 +01:00
BlazorApi.cs Add event handlers as tag helpers 2018-04-06 13:00:04 -07:00
BlazorCSharpLoweringPhase.cs Add Razor SDK and packages to templates 2018-03-14 11:23:41 +00:00
BlazorCodeDocItems.cs
…
BlazorCodeTarget.cs Implement components as tag helpers 2018-03-14 11:23:41 +00:00
BlazorDesignTimeNodeWriter.cs Corrects spelling of some comments 2018-04-02 12:34:08 +01:00
BlazorDiagnosticFactory.cs Remove old workaround @onclick and @bind 2018-04-10 16:54:15 -07:00
BlazorExtensionInitializer.cs Add a new feed dotnet-core 2018-04-08 14:24:06 -07:00
BlazorImportProjectFeature.cs Add Razor baseline test infrastructure 2018-04-04 08:05:59 -07:00
BlazorMetadata.cs Add event handlers as tag helpers 2018-04-06 13:00:04 -07:00
BlazorNodeWriter.cs Implement components as tag helpers 2018-03-14 11:23:41 +00:00
BlazorRuntimeNodeWriter.cs Remove old workaround @onclick and @bind 2018-04-10 16:54:15 -07:00
CSharpIdentifier.cs Get rid of RazorCompiler 2018-03-14 11:23:40 +00:00
CodeWriterExtensions.cs Correct the use of a parameter 'autoSpace' in the constructor 2018-04-09 12:08:20 +01:00
ComplexAttributeContentPass.cs Add event handlers as tag helpers 2018-04-06 13:00:04 -07:00
ComponentAttributeExtensionNode.cs Replace @bind with bind-... 2018-03-29 22:04:24 -07:00
ComponentBodyExtensionNode.cs Add Razor baseline test infrastructure 2018-04-04 08:05:59 -07:00
ComponentCloseExtensionNode.cs Implement components as tag helpers 2018-03-14 11:23:41 +00:00
ComponentDocumentClassifierPass.cs Add Razor baseline test infrastructure 2018-04-04 08:05:59 -07:00
ComponentLoweringPass.cs Add event handlers as tag helpers 2018-04-06 13:00:04 -07:00
ComponentOpenExtensionNode.cs Implement components as tag helpers 2018-03-14 11:23:41 +00:00
ComponentTagHelperDescriptorProvider.cs Replace @bind with bind-... 2018-03-29 22:04:24 -07:00
EliminateMethodBodyPass.cs Implement 2-phase compilation 2018-03-14 11:23:40 +00:00
EventHandlerLoweringPass.cs Add event handlers as tag helpers 2018-04-06 13:00:04 -07:00
EventHandlerTagHelperDescriptorProvider.cs Add event handlers as tag helpers 2018-04-06 13:00:04 -07:00
ImplementsDirective.cs Get rid of RazorCompiler 2018-03-14 11:23:40 +00:00
ImplementsDirectivePass.cs
…
InjectDirective.cs Get rid of RazorCompiler 2018-03-14 11:23:40 +00:00
LayoutDirective.cs Get rid of RazorCompiler 2018-03-14 11:23:40 +00:00
LayoutDirectivePass.cs
…
Microsoft.AspNetCore.Blazor.Razor.Extensions.csproj
…
OrphanTagHelperLoweringPass.cs Corrects spelling of some comments 2018-04-02 12:34:08 +01:00
PageDirective.cs Add @page directive 2018-03-14 11:23:43 +00:00
PageDirectivePass.cs Add Razor baseline test infrastructure 2018-04-04 08:05:59 -07:00
RazorCompilerException.cs Get rid of RazorCompiler 2018-03-14 11:23:40 +00:00
Resources.Designer.cs Add event handlers as tag helpers 2018-04-06 13:00:04 -07:00
Resources.resx Add event handlers as tag helpers 2018-04-06 13:00:04 -07:00
RouteAttributeExtensionNode.cs Add Razor baseline test infrastructure 2018-04-04 08:05:59 -07:00
ScopeStack.cs Implement components as tag helpers 2018-03-14 11:23:41 +00:00
TagHelperBoundAttributeDescriptorExtensions.cs Replace @bind with bind-... 2018-03-29 22:04:24 -07:00
TagHelperDescriptorExtensions.cs Add event handlers as tag helpers 2018-04-06 13:00:04 -07:00