Hi folks, I'm converting an agrichemical spray calculator app based on jQuery into an Ionic/AngularJS version - it is set up as a SPA.
The app has several calculators and within each calculator there is background information text (html) that is presented within a single accordion element. For each calculator I have a controller that sets up/controls the accordion and it's into this controller that I want to read the disclaimer notice from its file and assign it to a variable which is then passed into the accordion element. Assuming the preceding makes sense, how can I go about achieving this. The background information files are in a subfolder of the app, so the $http approach doesn't seem appropriate. I can find lots of examples of reading in json files, but not for reading in html text. Can someone point me in the right direction please. I'm not even sure of the angularJS terms I should be looking for. Thanks/Tom -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
