Expand my Community achievements bar.

Adding To Core Component For Angular SPA

Avatar

Level 1

Hello,

I am new to AEM and trying to develop a simple site showing pure custom component, pure core component, and extending core component.

I am trying to extend Title Core Component and add two more fields to it (viewtext and viewURL).

I am able to set up the JCR correctly which the cq dialog has the fields.

The issue I feel is how I written the Sling model. Since I am trying to make a Angular SPA site I need the JSON to pass those fields I added. I do not see these.

Here is my Java Sling Model.

code1.PNG

Here is my JCR cq dialog.

code2.PNG

Here is my JSON.

cod3.PNG

As you can see from my JSON, the viewtext and viewURL is missing.

What do I need to fix to make it work?

Thank you.

0 Replies