How to implement ngStorage with my code

235 views
Skip to first unread message

Rudy Sanchez

unread,
Aug 24, 2014, 1:15:41 PM8/24/14
to ang...@googlegroups.com
here is the plunkr that ngStorage has:

Here is a plunkr I have: in the script.js file you will see where I noted what needs to be saved as a sessionStorage. I don't know how to put it together

Sander Elias

unread,
Aug 25, 2014, 4:02:02 AM8/25/14
to ang...@googlegroups.com
Rudy,

you need to load (script src=...) and inject ngStorage in your plunker before you can use it.
To see how, read the plunkr you posted as well.

Regards
Sander Elias

Rudy Sanchez

unread,
Aug 25, 2014, 8:39:14 AM8/25/14
to ang...@googlegroups.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/Fwad2_kO6Pc/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.



--

Sander Elias

unread,
Aug 25, 2014, 10:02:04 AM8/25/14
to ang...@googlegroups.com
Hi Rudy,


Regards
Sander

Rudy Sanchez

unread,
Aug 25, 2014, 10:30:06 AM8/25/14
to ang...@googlegroups.com
Works Perfectly! the last I need to put in is the jquery to keep the table highlighted. How would this work?

 $('#myTable').on('click', ' tbody tr', function (event) {
        $(this).addClass('highlight').siblings().removeClass('highlight');
    });


--
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/Fwad2_kO6Pc/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.

Sander Elias

unread,
Aug 25, 2014, 11:00:01 AM8/25/14
to ang...@googlegroups.com
Hi Rudy,

You need no JQ for that, just add it to your template: http://plnkr.co/edit/LhGb5W4WqmFLRKeXUM6Z?p=preview

Regards
Sander


Reply all
Reply to author
Forward
0 new messages