asddsdsa
\nasdadadsads
\n", + "title": "blabla", + ":type": "text/html", + "multiValue": false + }, + "testtest": { + "dataType": "json", + "value": "{\"bla\":\"asd\"}", + "title": "testtest", + ":type": "json", + "multiValue": false + }, + "dropdownField": { + "dataType": "string", + "value": "b", + "title": "Dropdown Field", + ":type": "string", + "multiValue": false + } + }, + "elementsOrder": [ + "name", + "age", + "blabla", + "testtest", + "dropdownField" + ], + "model": "testing-frontend-react/models/custom-model" + } + }, + ":itemsOrder": [ + "custom-content-fragment" + ], + ":type": "core-components-examples/wcm-react/components/content-fragment", + "elements": { + "name": { + "dataType": "string", + "value": "ChildCF", + "title": "First name", + ":type": "string", + "multiValue": false + }, + "age": { + "dataType": "long", + "value": 18, + "title": "Age", + ":type": "long", + "multiValue": false + }, + "blabla": { + "dataType": "string", + "value": "asddsdsa
\nasdadadsads
\n", + "title": "blabla", + ":type": "text/html", + "multiValue": false + }, + "testtest": { + "dataType": "json", + "value": "{\"bla\":\"asd\"}", + "title": "testtest", + ":type": "json", + "multiValue": false + }, + "dropdownField": { + "dataType": "string", + "value": "b", + "title": "Dropdown Field", + ":type": "string", + "multiValue": false + } + }, + "elementsOrder": [ + "name", + "age", + "blabla", + "testtest", + "dropdownField" + ], + "model": "testing-frontend-react/models/testmodel" +} \ No newline at end of file diff --git a/projects/aem-angular-core-spa-wcm-components/test/lazy-component-wrapper/lazy.component.ts b/projects/aem-angular-core-spa-wcm-components/test/lazy-component-wrapper/lazy.component.ts new file mode 100644 index 0000000..5d8e694 --- /dev/null +++ b/projects/aem-angular-core-spa-wcm-components/test/lazy-component-wrapper/lazy.component.ts @@ -0,0 +1,31 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +import {Component, Input, OnInit} from '@angular/core'; +import {ContentFragmentV1Component,ContentFragmentV1Properties} from "../../containers/contentfragment/v1/src/public-api"; + + +@Component({ + selector: 'lazy-comp', + template: `