// inside engagement.component.ts:
class EngagementMembersController {
alphabetic: Array<string> = 'abcdefghijklmnopqrstuvwxyz'.split('');
constructor() {}
export const EngagementSetupMember: IComponentOptions = {
controller: EngagementMembersController,
templateUrl: 'engagementMembers.component.html'
}
// within topbar.moudel.ts:
import {EngagementSetupMember} from './../engagement.component';
export const topBarMembersModule: string = angular
.module('topbar-members', [])
.controller(EngagementSetupMember.controller)
.component('topbarMemberComponant', {
require: {
controller: '^EngagementMembersController'
},
templateUrl: 'topBarMembers.component.html'
})
.name;
i am facing an issue when trying to use this code, it throws an error on the screen:
vendor.js:36574 Error: [$compile:ctreq] Controller 'EngagementMembersController', required by directive 'topbarMemberComponant', cannot be found!
seeking assistance with resolving this problem. Thank you.