@@ -318,17 +318,23 @@ export interface InternalDirective extends ng.Directive {
318318}
319319
320320export interface IsolateBinding {
321- mode : string ;
322- collection : boolean ;
323- optional : boolean ;
324- attrName : string ;
321+ /** @internal */
322+ _mode : string ;
323+ /** @internal */
324+ _collection : boolean ;
325+ /** @internal */
326+ _optional : boolean ;
327+ /** @internal */
328+ _attrName : string ;
325329}
326330
327331export type IsolateBindingMap = Record < string , IsolateBinding > ;
328332
329333export interface ParsedDirectiveBindings {
330- isolateScope : IsolateBindingMap | null ;
331- bindToController : IsolateBindingMap | null ;
334+ /** @internal */
335+ _isolateScope : IsolateBindingMap | null ;
336+ /** @internal */
337+ _bindToController : IsolateBindingMap | null ;
332338}
333339
334340export type DirectiveRegistry = Record < string , ng . DirectiveFactory [ ] > ;
@@ -685,10 +691,10 @@ export class CompileProvider {
685691 }
686692
687693 bindings [ scopeName ] = {
688- mode : match [ 1 ] [ 0 ] ,
689- collection : match [ 2 ] === "*" ,
690- optional : match [ 3 ] === "?" ,
691- attrName : match [ 4 ] || scopeName ,
694+ _mode : match [ 1 ] [ 0 ] ,
695+ _collection : match [ 2 ] === "*" ,
696+ _optional : match [ 3 ] === "?" ,
697+ _attrName : match [ 4 ] || scopeName ,
692698 } ;
693699
694700 if ( match [ 4 ] ) {
@@ -705,20 +711,20 @@ export class CompileProvider {
705711 directiveName : string ,
706712 ) : ParsedDirectiveBindings {
707713 const bindings : ParsedDirectiveBindings = {
708- isolateScope : null ,
709- bindToController : null ,
714+ _isolateScope : null ,
715+ _bindToController : null ,
710716 } ;
711717
712718 if ( isObject ( directive . scope ) ) {
713719 if ( directive . bindToController === true ) {
714- bindings . bindToController = parseIsolateBindings (
720+ bindings . _bindToController = parseIsolateBindings (
715721 directive . scope ,
716722 directiveName ,
717723 true ,
718724 ) ;
719- bindings . isolateScope = { } ;
725+ bindings . _isolateScope = { } ;
720726 } else {
721- bindings . isolateScope = parseIsolateBindings (
727+ bindings . _isolateScope = parseIsolateBindings (
722728 directive . scope ,
723729 directiveName ,
724730 false ,
@@ -727,14 +733,14 @@ export class CompileProvider {
727733 }
728734
729735 if ( isObject ( directive . bindToController ) ) {
730- bindings . bindToController = parseIsolateBindings (
736+ bindings . _bindToController = parseIsolateBindings (
731737 directive . bindToController ,
732738 directiveName ,
733739 true ,
734740 ) ;
735741 }
736742
737- if ( bindings . bindToController && ! directive . controller ) {
743+ if ( bindings . _bindToController && ! directive . controller ) {
738744 // There is no controller
739745 throw $compileMinErr (
740746 "noctrl" ,
@@ -1354,9 +1360,6 @@ export class CompileProvider {
13541360
13551361 const node = stableNodeList [ _index ] ;
13561362
1357- /** @internal */
1358- ( node as Node & { _stable ?: boolean } ) . _stable = true ;
1359-
13601363 let childScope : Scope ;
13611364
13621365 let childBoundTranscludeFn : BoundTranscludeFn | null ;
@@ -2386,7 +2389,7 @@ export class CompileProvider {
23862389 const controller = elementControllers [ name ] ;
23872390
23882391 const bindings = controllerDirective . _bindings
2389- . bindToController as any ;
2392+ . _bindToController as any ;
23902393
23912394 const controllerInstance = controller ( ) ;
23922395
@@ -3384,8 +3387,8 @@ export class CompileProvider {
33843387 const bindings = ( directive . _bindings =
33853388 parseDirectiveBindings ( directive , directive . name ) ) ;
33863389
3387- if ( isObject ( bindings . isolateScope ) ) {
3388- directive . _isolateBindings = bindings . isolateScope ;
3390+ if ( isObject ( bindings . _isolateScope ) ) {
3391+ directive . _isolateBindings = bindings . _isolateScope ;
33893392 }
33903393 }
33913394 tDirectives . push ( directive ) ;
@@ -4037,9 +4040,9 @@ export class CompileProvider {
40374040 const definition = bindings [ scopeName ] ;
40384041
40394042 const {
4040- attrName,
4041- optional,
4042- mode, // @, =, <, or &
4043+ _attrName : attrName ,
4044+ _optional : optional ,
4045+ _mode : mode , // @, =, <, or &
40434046 } = definition ;
40444047
40454048 let lastValue : any ;
0 commit comments