These are chat archives for filearts/plunker

26th
Feb 2016
Nagendra Rao Jogi
@nagen1
Feb 26 2016 02:10

@flyingboy007 I am beginner to angular though. Just wondering how to send ng-init to controller and use that in $filter string parameter to query $resource. I have code as follow and don't make it work : I am not sure it will be right solution for me or no. Objective is to resource same controller with multiple parameter values and load different results as different section. like product type1 a section, type 2 an other section, etc... Appreciate the help.
'code'
angular.module('productmanage').controller(controllerId, ['productresource', productlistconroller]);

function productlistconroller(productresource){
var vm = this;

productresource.query({$filter: "substringof(text, 'type')"}, function(data){
vm.products = data;
});
} 'code'

Abhilash
@flyingboy007
Feb 26 2016 05:28
@nagen1 why dont you make a plunker?
miguel-t
@miguel-t
Feb 26 2016 18:37
hola