--

Actually you can, the syntax for having alias is as follows.

```

@if (store.myState(); as state) {

// You can use the state here.

}

```

--

--

Madhu Sudhanan
Madhu Sudhanan

Written by Madhu Sudhanan

Software developer and a blogger. Fond of Angular, React, Vue and Blazor frameworks. Follow me on Twitter — @maddydeep28. PortFolio — https://madhust.github.io/

Responses (1)