ghengeveld / angular-adaptive-templating

Adaptive templates for AngularJS
66 stars 10 forks source link

Not working with $routeProvider #5

Open ghost opened 9 years ago

ghost commented 9 years ago

i try to use with my app route config...but i can't solve it... i am using: dist/angular-adaptive-templating.js

var PKapp = angular.module('pkApp', [ 'adaptiveTemplating', 'ngRoute' ]);

PKapp.config(['$routeProvider', function($routeProvider) { $routeProvider .when('/', { templateUrl: '/apps/templates/{mobile}{desktop}/home-page.php' }) .when('/music', { templateUrl: '/projects/music/templates/{mobile}/container/music-index.php' }) }]);

  1. "/" still load = /apps/templates/home-page.php
  2. "/music" still load = /projects/music/templates/container/music-index.php

whats my fault? Please help.... waiting for response.

ghost commented 9 years ago

Sorry, Its working...

I missing 2nd option.