I'm slightly new to Angular JS. I'm using it with Ionic and Phonegap to
create a mobile application. This application has views injected into the
application by a web server.
I would therefore need to inject the ionic html markup views and compile
them with Angular somehow, as well as link these newly added views to the
routes definition. This is what I've done so far [inside app.config] :
app.stateProvider = $stateProvider;
and then [inside app.run] :
app.stateProvider.state('side-menu8', {
url: '/menu2',
templateUrl: 'side-menu8.html'});
$state.go('side-menu8');
The side-menu8.html template script markup is inserted into the index.html
page. I did this to test if the state registers outside the config process.
The application currently does register the additional state and re-directs
to the template successfully. My question is, how would i go about adding a
dynamic service that would fetch the views and data, inject it into the
index.html view and register the additional states?
--
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.