aspnetcore/test/testapps/BasicTestApp
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
..
HierarchicalImportsTest
HttpClientTest Remove old workaround @onclick and @bind 2018-04-10 16:54:15 -07:00
Properties
RouterTest Add event handlers as tag helpers 2018-04-06 13:00:04 -07:00
wwwroot Enable same-origin credentials by default. Add E2E test to show they can be sent to different-origin domains too. 2018-04-09 12:54:13 +01:00
AddRemoveChildComponents.cshtml Remove old workaround @onclick and @bind 2018-04-10 16:54:15 -07:00
BasicTestApp.csproj Reference static content from referenced assemblies. Implements #340 2018-04-06 09:50:10 +01:00
BindCasesComponent.cshtml Remove old workaround @onclick and @bind 2018-04-10 16:54:15 -07:00
CounterComponent.cshtml Remove old workaround @onclick and @bind 2018-04-10 16:54:15 -07:00
CounterComponentUsingChild.cshtml Remove old workaround @onclick and @bind 2018-04-10 16:54:15 -07:00
CounterComponentWrapper.cshtml
ExternalContentPackage.cshtml Remove old workaround @onclick and @bind 2018-04-10 16:54:15 -07:00
KeyPressEventComponent.cshtml Improvements for delegate types (#516) 2018-04-09 13:21:12 -07:00
MessageComponent.cshtml
ParentChildComponent.cshtml
Program.cs Enable same-origin credentials by default. Add E2E test to show they can be sent to different-origin domains too. 2018-04-09 12:54:13 +01:00
PropertiesChangedHandlerChild.cshtml
PropertiesChangedHandlerParent.cshtml Add event handlers as tag helpers 2018-04-06 13:00:04 -07:00
RedTextComponent.cshtml
RenderFragmentToggler.cshtml Add event handlers as tag helpers 2018-04-06 13:00:04 -07:00
SvgCircleComponent.cshtml Added SVG support (#366) (#435) 2018-03-30 10:07:10 +01:00
SvgComponent.cshtml Added SVG support (#366) (#435) 2018-03-30 10:07:10 +01:00
SvgWithChildComponent.cshtml Added SVG support (#366) (#435) 2018-03-30 10:07:10 +01:00
TextOnlyComponent.cshtml