Class are used everywhere in Angular, so worth double reading the manual of javascript .
private getDataUrl({org, project}) {
console.log(org);
console.log(project);
}
private getDataUrl(data) {
console.log(data.org);
console.log(data.project);
}
{
...state,
error: null,
pending: true,
}
_.default(state, { error: null, pending: true });
import { OrganizationComponent,
OrganizationCreateComponent,
OrganizationProfileComponent } from 'organizations';
import { OtherComponent1, OtherComponent2 } from 'others';
const organizationModules = [
OrganizationComponent,
OrganizationCreateComponent,
];
const otherComponents = [
OtherComponent1,
OtherComponent2
];
const commonModules = [
...organizationModules,
...otherComponents,
{ customObject: test },
]