Hello there, 
I'm new with Angularjs framework and I find it really cool, now I do a test 
project to really have mastery of the framework. I am trying to integrate 
my template and I manage routing with ngRoute. I loaded it into my 
application and it function well 

var app = angular.module ("project", ['ngRoute']); 

app.config (function ($ routeProvider) {
     $ routeProvider 
     .when ("/", {
         controller: "mainController" 
         templateUrl "partials / home.html" 
     }) 
     .when ("/ register", {
         controller: "mainController" 
         templateUrl "partials / register.html" 
     }) 
 
     .when ("/ detail", {
         controller: "detailController" 
         templateUrl "partials / detail.html" 
     }) 
      .otherwise ({reditrectTo "/"}); 

}); 

In my index.html page, I load my view with the <div ng-view> </ div>. it 
works well but the problem is that the pages not the same and have 
different design and different column header. I want to know how to include 
pages that are the same template set. Thank you for your help ...

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