Closed alex3683 closed 7 years ago
Renamed issue, let's include non-Angular-related API doc cleanup work as well.
@memberOf
=> @memberof
@private
docs$scope
=> context
(AxContext
presumably)
and probably as first:laxar-dox
for api doc generation, including the npm script in package.json
laxar-patterns.js
Breaking:
scopeKey
=> contextKey
Implemented on master
(v2.0.0
)
Since LaxarJS is independent from AngularJS starting with 2.x all occurrences of scope (which referenced the AngularJS widget scope) are renamed to context (generic AxContext instance provided by the widget runtime). The latter is agnostic of any widget implementation technology. In fact for AngularJS the scope extends the AxContext instance.
For the flags library not only the documentation needed to be changed, but also the scopeKey
option of registerFlag
and registerFlagFromFeature
.
So this
flags.handlerFor( context )
.registerFlagFromFeature( 'superFeature.superAttribute.disableOn', {
scopeKey: 'flags.disabled',
} );
becomes this
flags.handlerFor( context )
.registerFlagFromFeature( 'superFeature.superAttribute.disableOn', {
contextKey: 'flags.disabled',
} );
The same applies to registerFlag
.
There are some parameters still containing "scope" (for example
registerFlagFromFeature
in the flag handler). This must be changed into something universal, for example "context".