Hi Thomas,

I think this will help full for you.

http://plnkr.co/edit/O9FNpQmBBS4T3cMrvBUF?p=preview



On Saturday, December 12, 2015 at 7:58:46 AM UTC+5:30, Thomas Baine wrote:
>
> 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.

Reply via email to