@@ -22,13 +22,13 @@ import {
2222 * $nonscope: boolean,
2323 * $addControl: Function,
2424 * $getControls: () => any[],
25- * $$renameControl : Function,
25+ * _renameControl : Function,
2626 * $removeControl: Function,
2727 * $setValidity: Function | ((key: any, isValid: boolean, control: any) => any),
2828 * $setDirty: Function,
2929 * $setPristine: Function,
3030 * $setSubmitted: Function,
31- * $$setSubmitted : Function
31+ * _setSubmitted : Function
3232 * }}
3333 */
3434export const nullFormCtrl = {
@@ -37,7 +37,7 @@ export const nullFormCtrl = {
3737 /* empty */
3838 } ,
3939 $getControls : ( ) => [ ] ,
40- $$renameControl : ( control , name ) => {
40+ _renameControl : ( control , name ) => {
4141 control . $name = name ;
4242 } ,
4343 $removeControl : ( ) => {
@@ -55,7 +55,7 @@ export const nullFormCtrl = {
5555 $setSubmitted : ( ) => {
5656 /* empty */
5757 } ,
58- $$setSubmitted : ( ) => {
58+ _setSubmitted : ( ) => {
5959 /* empty */
6060 } ,
6161} ;
@@ -233,7 +233,7 @@ export class FormController {
233233 }
234234
235235 // Private API: rename a form control
236- $$renameControl ( control , newName ) {
236+ _renameControl ( control , newName ) {
237237 const oldName = control . $name ;
238238
239239 if ( this [ oldName ] === control ) {
@@ -355,19 +355,19 @@ export class FormController {
355355 while ( rootForm . $$parentForm && rootForm . $$parentForm !== nullFormCtrl ) {
356356 rootForm = rootForm . $$parentForm ;
357357 }
358- rootForm . $$setSubmitted ( ) ;
358+ rootForm . _setSubmitted ( ) ;
359359 }
360360
361- $$setSubmitted ( ) {
361+ _setSubmitted ( ) {
362362 if ( hasAnimate ( this . $$element ) ) {
363363 this . $$animate . addClass ( this . $$element , SUBMITTED_CLASS ) ;
364364 } else {
365365 this . $$element . classList . add ( SUBMITTED_CLASS ) ;
366366 }
367367 this . $submitted = true ;
368368 this . _controls . forEach ( ( control ) => {
369- if ( control . $$setSubmitted ) {
370- control . $$setSubmitted ( ) ;
369+ if ( control . _setSubmitted ) {
370+ control . _setSubmitted ( ) ;
371371 }
372372 } ) ;
373373 }
@@ -685,7 +685,7 @@ const formDirectiveFactory = function (isNgForm) {
685685 attrParam . $observe ( nameAttr , ( newValue ) => {
686686 if ( controller . $name === newValue ) return ;
687687 scope . $target [ controller . $name ] = undefined ;
688- controller . $$parentForm . $$renameControl ( controller , newValue ) ;
688+ controller . $$parentForm . _renameControl ( controller , newValue ) ;
689689
690690 if (
691691 scope . $target !== controller . $$parentForm &&
0 commit comments