I am currently in a node, angular, express, html environment. I have numerous buttons that I use to fill this text area with text data.
<div class="form-group">
<label class="control-label" for="flyer description">Description</label>
<textarea style="height:400px" class="form-control" id="flyer-description"></textarea>
</div>
Here is my button:
<td><button id="button1">Client Welcome</button></td>
Here is a snippet of JS corresponding to this button:
$(function() {
$('#button1').on('click', function() {
$('#flyer-description').load("/assets/clientwelcome.txt");
});
});
Now, while I import text, I would like to import JSON data so that when the text calls for say {{client.name}}
, with the presence of ClientCtrl(Angular Controller) and my module it will change to the specific client's name. Does anyone have any suggestions?
Aucun commentaire:
Enregistrer un commentaire