Hi,

As I am quite new to angular js I have not understood the code sent by bao
dinh.
Could someone spoon feed me and give me the model, view and controller code
from scratch for searching for a string in a file and displaying it's
contents

Thanks

On Fri, Sep 11, 2015 at 9:25 PM, Thế Bảo Đinh <[email protected]> wrote:

> Yes, you can use it . It is the code i used:
>        obj.getCustomers = function(){
> return $http.get("data/data.xml");
> }
>
>         services.getCustomers().then(function(data){
> var source = x2js.xml_str2json(data.data);
> angular.forEach(cartItems,function(value,key){
>
> var item = ($filter('filter')(source.data.item, {id: value }));
>
> shopItems.push(item[0]);
> });
> $scope.shopItems = shopItems;
> });
>
> On Friday, September 11, 2015 at 11:26:35 AM UTC-4, Jayashree M A wrote:
>>
>> Hi.
>>
>> Actually the file can be local or remote. Can i use the $http service to
>> read the
>> file contents and then display the filtered contents? I don't need to do
>> drag and
>> drop
>>
>> Thanks in advance
>>
>>
>> On Fri, Sep 11, 2015 at 8:36 PM, Sander Elias <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> What do you need, you want your use to be able to drop an file into your
>>> app or what?
>>> Reading the local file system from within the browser is impossible.
>>> (well, for a web-app it is)
>>>
>>> Regards
>>> Sander
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "AngularJS" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/angular/bmB5yiWjZT0/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/angular.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "AngularJS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/angular/bmB5yiWjZT0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to