These are chat archives for canjs/canjs

19th
Sep 2015
Andrei Balmus
@abalmush
Sep 19 2015 05:22
@roemhildtg try this:
viewModel: {
    id: '@',
    resolve: function() {
        this.attr('def').resolve();
    },
    initWidget: function() {
      var self = this;
      this.attr('def', can.Deferred());
      this.attr('def').then(function() {
          console.warn('this deferred has been resolved');
      });
    }
  },
avg6003
@avg6003
Sep 19 2015 10:24
@daffl Thanx for suggestion. I have tried pushstate plugin too. It is based on directory structured templates. So If I would call abc/def/ghi then I will have to create the directory like that path. where there is nothing like this in route. Is there any option to remove hash without using pushstate?