Angular js ForEach

62 views
Skip to first unread message

aks...@baabte.com

unread,
Oct 13, 2014, 11:31:09 AM10/13/14
to ang...@googlegroups.com
How to looping through div and create a json object using anularJS. Please help me.

dinesh kumar

unread,
Oct 14, 2014, 12:48:36 AM10/14/14
to ang...@googlegroups.com
it depends on where do you need to do this,in controller or in directive ?

Also could you please elaborate your needs to do it ?

Regards
Dinesh kumar.L

Akshath Kumar

unread,
Oct 14, 2014, 1:01:37 AM10/14/14
to ang...@googlegroups.com
First of all thanks for the reply.

my html contents look like below,

<div>
   <li>--main item--</li>
   <li>--main item--</li>
   <li>--main item--
    <ul>
             <li>--sub item--</li>
              <li>--sub item--</li>
    </li>

</div

from above code i need to get the json object and send this to a function inside the angular service.

I am new to angularJs, So Please suggest me the best way to do this.




Thanks & Regards,

 

Akshath kumar M

Mob : +919567102617

 



baabte System Technologies Pvt Ltd.

An ISO 9001 : 2008 certified company

Office: + 91495-2295550 | Mob : +919539906339

www.baabte.com | www.baabtra.comwww.massbaab.com


--
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/eYYdTz9kPTs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Pushpendra Kumar

unread,
Oct 14, 2014, 7:47:03 AM10/14/14
to ang...@googlegroups.com
Hi Kumar,
                  What is your need whether you want create the above code using angular and json or create json from above code.


Regards,
Pushpendra

--
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 angular+u...@googlegroups.com.

Akshath Kumar

unread,
Oct 14, 2014, 7:56:01 AM10/14/14
to ang...@googlegroups.com
Hi Pushpendra,

I need to create the json object from above code.



Thanks & Regards,

 

Akshath kumar M

Mob : +919567102617

 



baabte System Technologies Pvt Ltd.

An ISO 9001 : 2008 certified company

Office: + 91495-2295550 | Mob : +919539906339

www.baabte.com | www.baabtra.comwww.massbaab.com


Reply all
Reply to author
Forward
0 new messages