Urigo / Ionic-MeteorCLI-WhatsApp

WhatsApp Clone tutorial with Ionic 1.0 and Meteor CLI
https://www.angular-meteor.com/tutorials/whatsapp/meteor/bootstrapping
MIT License
205 stars 267 forks source link

Templates throw 404 #24

Closed manugb closed 7 years ago

manugb commented 8 years ago

Doing step 1, client/templates/tabs.html and chats.html are not being loaded

With angular-templates 1.0.8_1 angular 1.5.x angular-meteor 1.3.11

It works using angular-templates 1.0.3

smasztarowski commented 8 years ago

fix routes.js:

import { Config } from 'angular-ecmascript/module-helpers';
import templateChatUrl from '../templates/chats.html'; // Add this
import templateTabsUrl from '../templates/tabs.html'; // and this

export default class RoutesConfig extends Config {
    configure() {
        this.$stateProvider
            .state('tab', {
                url: '/tab',
                abstract: true,
                templateUrl: templateTabsUrl // then update templateUrl here
            })
            .state('tab.chats', {
                url: '/chats',
                views: {
                    'tab-chats': {
                        templateUrl: templateChatUrl // and here
                    }
                }
            });

        this.$urlRouterProvider.otherwise('tab/chats');
    }
}

RoutesConfig.$inject = ['$stateProvider', '$urlRouterProvider'];
DAB0mB commented 8 years ago

@manugb Are you still receiving this error? Because for me it works fine. What happens if you clone the project and checkout step 1?