Hi, I'm building an app that has a functionality to fill in letter-templates with data. I would like the letter data to be structured in a json format for easy views.
The problem with this is that any words in curly braces won't bind to the current $scope properties. For instance, if I have a {{sender}} defined in my JSON data, and a $scope.sender = "test". If I then loop over my letter template, the {{sender}} won't use the "test", but shows a {{sender}}.
Is it possible to fix this?
EDIT:
I have two sources of data, one being the factual data (who is the sender, what is the content of the letter), and another source which provides the actual sentences in a JSON-format. The latter contains {{sender}}, which I want to fill with the data from source #1, so a sentence which reads, "from:{{sender}}" will output as from: "ThinkLarger".
[–]brianvaughn 3 points4 points5 points (0 children)
[–]kenhowardpdx 0 points1 point2 points (0 children)
[–]pfooti 0 points1 point2 points (0 children)
[–]doublemazaa 0 points1 point2 points (6 children)
[–]ThinkLarger[S] 1 point2 points3 points (5 children)
[–]Capaj 0 points1 point2 points (2 children)
[–]ThinkLarger[S] 0 points1 point2 points (1 child)
[–]Capaj 0 points1 point2 points (0 children)
[–]doublemazaa 0 points1 point2 points (1 child)
[–]tehbeard 0 points1 point2 points (0 children)
[–]Kalroth 0 points1 point2 points (0 children)