I have a global constants file where I added a links node to it but I'm not sure how to translate that from the constants file into the html file or possibly ts file.
constants file
Added public backToClassicAO() method, but I don't know if that is correct or on the right path
typescript
For the html I want the link or href? to be for the words 'go back to the classic experience.'
html
To summarize, I'm trying to get the constants file to connect or translate to the html to create a link for around those words. My terminology my be off and if so I apologize. Tried to the best I can to explain. I would definitely appreciate any assistance. Thanks
constants file
Code:
export const GlobalConstants = {
AOApiPath:
'api/uddi:schwab.com:service:sch.core.retirementPlanServices.AccountOverview/
Dashboard/Hub',
apiPathData: {
"aoApiLandingPageContent": {
"viewId": "landingpageview",
"moduleId": "header",
},
"aoApiPersonalPerformance": {
"participantId": "",
"pId": "",
},
"aoApiRolloverOptions": {
"viewId": "landingpageview",
"moduleId": "EnrollmentSuccessCard",
}
},
links: {
classicAO: '../MicroUIs/'
}
}
Added public backToClassicAO() method, but I don't know if that is correct or on the right path
typescript
Code:
import { Store } from '@ngrx/store';
import { GlobalConstants } from 'src/app/ao-shared/global-
constants';
@Component({
selector: 'app-personalperformance-enhanced-nonqual',
templateUrl: './personalperformance-enhanced-
nonqual.component.html',
styleUrls: ['./personalperformance-enhanced-
nonqual.component.scss'],
})
export class PersonalperformanceEnhancedNonqualComponent extends
AoLoadableComponent {
constructor(changeDetectorRef: ChangeDetectorRef, store: Store) {
super(changeDetectorRef, store);
this.store = store;
}
ngOnInit() {
super.ngOnInit();
this.registerModalContent();
}
public backToClassicAO(){
window.open(GlobalConstants.links.classicAO);
}
}
For the html I want the link or href? to be for the words 'go back to the classic experience.'
html
HTML:
<div class="sdps-is-relative badge-example-outline sdps-p-around_medium sdps-m-
around_medium">
<sdps-badge
sdps-id="spdb-promotional-beta-overlay"
type="promotional"
status-text="Beta"
promotional-type="beta"
sr-label-prefix="You have got"
sr-label-suffix="notifications"
is-overlay
>
</sdps-badge>
<div class="ao-text-header">Account Overview has a new look</div>
You can view your retirement accounts below, or go back to the classic experience.
</div>
To summarize, I'm trying to get the constants file to connect or translate to the html to create a link for around those words. My terminology my be off and if so I apologize. Tried to the best I can to explain. I would definitely appreciate any assistance. Thanks