iron-router-progress icon indicating copy to clipboard operation
iron-router-progress copied to clipboard

ng-click is not working after updating to iron-router.

Open siboyapati opened this issue 11 years ago • 2 comments

After updating to iron-router the ng-click on the anchor tag is not working.

screen shot 2014-12-16 at 3 25 17 pm

Here is my router: Router.route('/login', { controller: 'LoginController', action: 'login' });

Router.route('/home', { controller: 'HomeController', action: 'home' });

if (Meteor.isClient) { ApplicationController = RouteController.extend({ onBeforeAction: function () { console.log('app before hook!'); this.next(); }, action: function () { console.log('this should be overridden!'); } });

Router.onAfterAction(function (req, res, next) {
    Tracker.afterFlush(function () {
        angular.element(document).injector().invoke(['$compile', '$document', '$rootScope',
            function ($compile, $document, $rootScope) {
                $compile($document)($rootScope);
                if (!$rootScope.$$phase)
                    $rootScope.$apply();
            }
        ]);
    });
});



LoginController = ApplicationController.extend({
    login: function () {
        this.render('login');
    }
});

HomeController = ApplicationController.extend({
    home: function () {
        this.render('home');
    }
});

siboyapati avatar Dec 16 '14 20:12 siboyapati

same question on stackoverflow:http://stackoverflow.com/questions/27513506/ng-click-is-not-working-after-updating-to-iron-router

siboyapati avatar Dec 16 '14 20:12 siboyapati

Is this working, without iron-router-progress?

Multiply avatar Dec 19 '14 08:12 Multiply