On Saturday, September 13, 2014 12:43:45 AM UTC-6, Jeffrey Cross wrote:
>
> When you are adding the template to the cache, the first argument you pass 
> is the url for the template. The template is not available directly in the 
> injector, and can be incorporated into your route definition using 
> templateUrl instead of template.


Whoops, you're right...

Hmm, I still can't seem to access the controller in the app.config().  
OK... I stuck ng-controller="adminController" into the top <div> of my 
template, and that seems to work...  
Is there any difference between that and setting the controller in the 
$stateProvider.state()?

Is there a different, preferred way of doing this?  I'd like to embed all 
my top-level pages into modules, and I couldn't find any best-practices on 
the subject...

-- 
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.

Reply via email to