You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using TypeScript, after switching to ß2 $stateProvider.state() expects StateDeclaration parameter type, that doesn't have a template property for example. Therefore the following code doesn't compile (did work with ß1).
Argument of type '{ url: string; template: string; }' is not assignable to parameter of type 'StateDeclaration'.
Object literal may only specify known properties, and 'template' does not exist in type 'StateDeclaration'.
There is an Ng1StateDeclaration interface, so came up with a temporary workaround for myself:
I'm using TypeScript, after switching to ß2
$stateProvider.state()
expectsStateDeclaration
parameter type, that doesn't have atemplate
property for example. Therefore the following code doesn't compile (did work with ß1).The compilation error:
There is an
Ng1StateDeclaration
interface, so came up with a temporary workaround for myself:The text was updated successfully, but these errors were encountered: