javascript - AngularJS: pass variable from backend while loading a page -
This is my first test with Kangra JS and is stuck in a very basic phase. I have an Anguljeses Front and Gray's backend. The code snippets below are as per my question.
- URL Mapping Entry:
Like
"/ Graph" (Controller: 'Graph')
As
class GraphController {DEF index} (render: "../graph", model: [employee id: "197040"])}} - < Li> This is the AngularJS file, which is saved as graph.gsp:
When I enter url I am capable of displaying the body as "Hi! Welcome", but to read that employee ID and "Hi! Welcome 197040" (i.e. variable worker sent from backend Id);
Hi! <{EmployeeId}} & lt; / H3 & gt; & lt; / div & gt; does not work as expected.
I am sorry that this is a very basic question, but I am not that much, see the answers anywhere.
The other thing is, it is later GSP .. and your gallery variables will work normally Just like how do you define a layout.
& lt; Div & gt; & Lt; H3 & gt; Oh! Welcome $ {employee ID} & lt; / H3 & gt; & Lt; / Div & gt;
Those information are going to push back ....
Optional is something like this: As per service shown on this demo site ..
It may be that you try to see the arrested plugin for yourself as a demo and then take over the service for example and change it for your own use ..
Comments
Post a Comment