I've watched the youtube tutorial a number of times and also tried to use the default json feed at "/widget_notificaiton/demodata/default" and I always get the following in my navigation bar "{{response.badge_text}}". See the attached images.
As you can see I'm using the PM Kickstart Theme (7.x-1.x-dev).
When I navigate to both the default demodata feed and my own that I have created I can see the feeds are there:
/widget_notificaiton/demodata/default:
{"badge_text":10,"badge_type":"alert-danger","fa_icon":"fa-envelope","detail_url":"\/","detail_url_text":"Read all messages","messages":[{"title":"John Doe","fa_icon":"fa-comment","text":"Hi there, i think you would be interested in this cool new feature","path":"\/examples\/twitter","text_muted":"10:01:04","showProgress":true,"progress_percent":6.6666666666667,"progress_type":"warning"},{"title":"Jane Roe","subtitle":"(project lead)","text":"The design files have been updated, need your approval","path":"\/examples\/twitter","text_muted":"09:01:04","showProgress":false},{"subtitle":"Twitter","path":"\/examples\/twitter","text_muted":"Yesterday","fa_icon":"fa-twitter"},{"subtitle":"System","path":"\/admin\/reports\/log","text_muted":"Yesterday","badge_text":17,"badge_type":"progress-bar-danger","fa_icon":"fa-gear"},{"subtitle":"Facebook","text":"Some really long text definitely exceding 200 character count to\n show that the text is indeed truncated by using ng directive LimitTo.","path":"\/examples\/facebook","text_muted":"Today","fa_icon":"fa-facebook"}]}
I'd really like to get this working. Are there undocumented dependencies? What am I missing?
Comment | File | Size | Author |
---|---|---|---|
#6 | Screen Shot 2015-12-01 at 14.32.12.png | 65.21 KB | johnkareoke |
Screen Shot 2015-11-26 at 09.40.51.jpg | 13.5 KB | johnkareoke | |
Screen Shot 2015-11-26 at 10.20.56.jpg | 37.74 KB | johnkareoke |
Comments
Comment #2
johnkareoke CreditAttribution: johnkareoke as a volunteer commentedI've managed to debug this a little further. It seems the angular.js functions are not loading. When I inspect the JS console I get the following error:
Uncaught ReferenceError: angular is not defined
@
Any assistance would be much appreciated
Comment #3
D34dMan CreditAttribution: D34dMan commentedIs this on your local or somewhere i can access?
Comment #4
johnkareoke CreditAttribution: johnkareoke as a volunteer commentedIt can be accessed here: http://dev-widgettest.pantheon.io
Comment #5
D34dMan CreditAttribution: D34dMan commenteddid you install jquery update and can you tell me what jquery version you are using?
Comment #6
johnkareoke CreditAttribution: johnkareoke as a volunteer commentedI have installed Jquery update: It is running V1.10 (Development) from Google CDN:
Comment #7
D34dMan CreditAttribution: D34dMan commentedFollowing js libraries are needed.
angular-poller.js from https://github.com/emmaguo/angular-poller/ and angular.js and angular-resource.js from http://code.angularjs.org/
put them in libraries folder so that it looks something like below
I will improve the documentation regarding this.
Comment #8
johnkareoke CreditAttribution: johnkareoke as a volunteer commentedThanks D34dMan. I've got it working, with one minor change to the libraries above, which is worth noting for the readme
and not
Comment #9
johnkareoke CreditAttribution: johnkareoke as a volunteer commentedComment #10
D34dMan CreditAttribution: D34dMan commented@johnkareoke thanks a lot :) sorry for the inconvenience caused.
Assigning this to myself as Documentation has to be updated.
Comment #12
D34dMan CreditAttribution: D34dMan commentedThanks, updated readme and documentation on project homepage