Angular developers need a pathto call for the content from aem page | Community
Skip to main content
madhu6750610
September 15, 2017
Solved

Angular developers need a pathto call for the content from aem page

  • September 15, 2017
  • 7 replies
  • 1452 views

I generated the json file and gave the path/bin/***/filename.json . I am able to see the json file in author mode but not in publish. Our aem ops team says they cannot make bin as public. Tried to change the path, using js generated the json path file now the path is path/cntetn/***/***/filename.json which I am able to see in author mode but not in publish.

My question is is there any other way that I can try . Please if any other have idea do comment.

Thank you.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by madhu6750610

Issue resolved.

The generated JSON also has category Tags which is from etc/tags and our admin team isn't giving permissions to access it in Pub mode, so I removed the tags which displayed the JSON content finally.

Now, able to access from /services/** as well call /content/**

Thanks everyone.

7 replies

edubey
September 15, 2017

Hi

/bin will not be accessible and also not recommended

Now, Is this is a file path in the content hierarchy?

Thanks

madhu6750610
September 15, 2017

Hi Edubey,

Yes its /content/***/***/filename.json.

smacdonald2008
September 15, 2017

Why use Angular over HTL and Sling Models?

VeenaVikraman
Community Advisor
Community Advisor
September 15, 2017

Hi Madhu

    Few questions

  1. Can you check the permissions on your /content/***/***/filename.json path ? If it is visible in author and not in publish , first check should be done on the permissions of the path in publish. It should have allow permission for your anonymous users.
  2. Are you accessing this over dispatcher ? Are you sure you have allow permissions to .json in your farm.any file ?
  3. What error do you see when you hit /content/***/***/filename.json.in your publish ?
madhu6750610
September 15, 2017

Issue resolved.

The generated JSON also has category Tags which is from etc/tags and our admin team isn't giving permissions to access it in Pub mode, so I removed the tags which displayed the JSON content finally.

Now, able to access from /services/** as well call /content/**

Thanks everyone.

madhu6750610
madhu6750610AuthorAccepted solution
September 15, 2017

Issue resolved.

The generated JSON also has category Tags which is from etc/tags and our admin team isn't giving permissions to access it in Pub mode, so I removed the tags which displayed the JSON content finally.

Now, able to access from /services/** as well call /content/**

Thanks everyone.

VeenaVikraman
Community Advisor
Community Advisor
September 15, 2017

Just one question Madhu ? You can get a read only permission for tags in Publish right ?