Code experience

1. const id=this.resetForm.controls["profset"].value.split('_');
    const prfname=id. slice(2).join('_'); // Join the array from the item with index 2
2. entity.match(newRegExp(/\/ctp\/eols-\d+/)) //Regular expressions can be written directly, / is the delimiter, and must be escaped when used in the content

3. To communicate between Angular sibling controls, inject service into the parent control, and use it directly without injecting it into the child component.

AAARouterComponent(AAAService)------> AAAOverviewComponent 

                                                               ------> AAAControlsComponent

4. //Expand the existing enum

Export enum IpInterfaceExtEnum{
    bfdConfigParams='bfdcprm'
}

Export const IpInterfaceExtNickNames = {...IpInterfaceNickNames,...IpInterfaceExtEnum};

Guess you like

Origin blog.csdn.net/yizheng_zeng/article/details/132218925