Magnolia 5.6 reached end of life on June 25, 2020. This branch is no longer supported, see End-of-life policy.
...
Tip |
---|
To avoid getting in trouble with the same-origin policy, run the Angular app on the same server as Magnolia. See how to overcome same-origin policy problem. Instead of a Freemarker template, keep it simple and just add a three static files to a light module. |
...
APP_CONFIG
, globalData
and utils
are injected.nodes
REST endpoint. The content item path is the selected item. It requests data for one content item as we did in testing REST access.globalData
component.$watch
which is a value change listener for globalData.productPath
. The REST call is executed initially and when globalData.productPath
changes....
...
Photo credits:
Aston Martin DB5, Aston Martin Works
Aston Martin V8, Beltane43, Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)