These are chat archives for angular/material

24th
Jul 2015
vitaly87
@vitaly87
Jul 24 2015 13:53
hi need smal help any one
sunny
@sunnynegi
Jul 24 2015 13:54
question?
vitaly87
@vitaly87
Jul 24 2015 13:54
I am trying to use some api with factory but getting same results with defrent search
var List={};
List.setData = function (tracks) {
        var page_size = 6;
        // SC.get('/tracks', { limit: page_size }, function(tracks) {
        //     List=tracks;
        // });
        SC.get('/tracks', { limit: page_size, linked_partitioning: 1 }, function(tracks) {
        // page through results, 100 at a time
         List=tracks;
        $rootScope.$broadcast('event:ItemsReceived');
        });
    };
var List={};
List.setData = function (tracks) {
        var page_size = 6;
        // SC.get('/tracks', { limit: page_size }, function(tracks) {
        //     List=tracks;
        // });
        SC.get('/tracks', { limit: page_size, linked_partitioning: 1 }, function(tracks) {
        // page through results, 100 at a time
         List=tracks;
        $rootScope.$broadcast('event:ItemsReceived');
        });
    };
I am setting the tracks to new values from controller but its works only the first time others time it getting the result for the first
@sunnynegi what do you think?
Hugo Sena Ribeiro
@hugosenari
Jul 24 2015 14:25
Cache?
Pierre
@NaKroTeK
Jul 24 2015 15:33
Hello, I'm Stuck trying to dynamically add <md-autocomplete> with Js & .append method, I have the element but he is not interpreted, should I Do it by another way ? Thx for your Help !