[AngularJS] Re: Directives Loading Before $resource Returns Data
Hi Paul, Had little to do with the directive, except for that plotr seems very sensitive to bad data. also it can't handle promises, so I had to make sure those were resolved before putting in the data. here is a version http://goo.gl/pIRYag that will work. I'm not sure why you had chosen to use $resource for this, instead of $http(.get). Regards Sander -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
[AngularJS] Re: Directives Loading Before $resource Returns Data
Thank you Sander. I really appreciate the help. Regarding comments: The json validated. What was bad about the data? I tried using $http and had similar results. When I was using v1.0.7 I used $http across all calls and then moved to $resource because many calls that were read-only now were going to support PUT/POST in the future. Found my self copying and pasting until last week when I updated to v1.2.5 and moved back to $http w/ same results. Again, thanks for the help. Paul On Friday, January 3, 2014 2:54:47 AM UTC-6, Sander Elias wrote: Hi Paul, Had little to do with the directive, except for that plotr seems very sensitive to bad data. also it can't handle promises, so I had to make sure those were resolved before putting in the data. here is a version http://goo.gl/pIRYag that will work. I'm not sure why you had chosen to use $resource for this, instead of $http(.get). Regards Sander -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
Re: [AngularJS] Controller
Thank you very much for ur reply but i m gettin error as *Uncaught Error: Syntax error, unrecognized expression: /example jquery.js:1850 http://localhost:9000/bower_components/jquery/jquery.js* 1. *Error: [ng:areq] Argument 'exampleCtrl' is not a function, got undefined* 2. On Friday, January 3, 2014 12:03:46 PM UTC+5:30, Aadithya Udupa wrote: Not sure I understand what the issue here is. But if you want to include datepicker here (refer herehttp://plnkr.co/edit/QAxwgLSWQaYbGzkzeu4g?p=preview and here http://mgcrea.github.io/angular-strap/#/datepicker), all you need to do is 1. Add $scope.datepicker = {date: new Date(2012-09-01T00:00:00.000Z)}; in your controller 2. Add var dashBoardApp = angular.module('dashBoardApp', ['$strap.directives']); Then you can add controllers dashBoardApp.controller('exampleCtrl', function($scope){ //Controller code goes here }); 3. Add the following in the view label for=inputDatepicker class=label style=margin-right:6px;date/label input id=inputDatepicker class=input-small type=text ng-model=datepicker.date data-date-format=dd/mm/ bs-datepicker button type=button class=btn data-toggle=datepickeri class=icon-calendar/i/button On Fri, Jan 3, 2014 at 11:32 AM, Archana archa...@gmail.com javascript: wrote: This is my example.js file. 'use strict'; angular.module('dashboardApp'.controller('exampleCtrl', function ($scope) { }); in each and evry controller i should include dis 'dashboardapp' and conroller name 'exampleCtrl'. but i want to define my own controllers with this now m trying to write code for datepicker but m not getting.please do the needful. Thanks -- 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 javascript:. To post to this group, send email to ang...@googlegroups.comjavascript: . Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out. -- Regards, Aadithya C Udupa -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
Re: [AngularJS] Controller
Only the input box and icon are visible. when i click calendar is not poping up, please help me On Friday, January 3, 2014 12:03:46 PM UTC+5:30, Aadithya Udupa wrote: Not sure I understand what the issue here is. But if you want to include datepicker here (refer herehttp://plnkr.co/edit/QAxwgLSWQaYbGzkzeu4g?p=preview and here http://mgcrea.github.io/angular-strap/#/datepicker), all you need to do is 1. Add $scope.datepicker = {date: new Date(2012-09-01T00:00:00.000Z)}; in your controller 2. Add var dashBoardApp = angular.module('dashBoardApp', ['$strap.directives']); Then you can add controllers dashBoardApp.controller('exampleCtrl', function($scope){ //Controller code goes here }); 3. Add the following in the view label for=inputDatepicker class=label style=margin-right:6px;date/label input id=inputDatepicker class=input-small type=text ng-model=datepicker.date data-date-format=dd/mm/ bs-datepicker button type=button class=btn data-toggle=datepickeri class=icon-calendar/i/button On Fri, Jan 3, 2014 at 11:32 AM, Archana archa...@gmail.com javascript: wrote: This is my example.js file. 'use strict'; angular.module('dashboardApp'.controller('exampleCtrl', function ($scope) { }); in each and evry controller i should include dis 'dashboardapp' and conroller name 'exampleCtrl'. but i want to define my own controllers with this now m trying to write code for datepicker but m not getting.please do the needful. Thanks -- 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 javascript:. To post to this group, send email to ang...@googlegroups.comjavascript: . Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out. -- Regards, Aadithya C Udupa -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
Re: [AngularJS] Controller
Hi, If you put your issue inside a plunk or a fiddle, most of us are happy to help. Now all I can do is tell you you have a error in your code! Regards Sander -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
Re: [AngularJS] How to include my own controllers
write file example.js. and include controller name in body or any div where you want your controller to be covered. data-ng-controller=controller name Regards, Pushpendra On 3 January 2014 11:30, Archana archanas...@gmail.com wrote: Hi. I'm working on angular js just from two weeks. I have a main page index.html in dat i hav included ng-app=dashboardApp.now i should include dashboardApp in controller(example.js) file, i should run evrything from index.html file.M not getting how to do it.Can anyone pls help me out. Thanks Archana -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
Re: [AngularJS] How to include my own controllers
Thanks for ur reply. I ve main file 'index.html' in this file ng-app and controller are already defined. if i ve to write my own js files then i should make use of only this 'dashboardApp'' and 'exampleCtrl'.Here is my prob On Friday, January 3, 2014 4:52:38 PM UTC+5:30, Pushpendra Kumar wrote: write file example.js. and include controller name in body or any div where you want your controller to be covered. data-ng-controller=controller name Regards, Pushpendra On 3 January 2014 11:30, Archana archa...@gmail.com javascript: wrote: Hi. I'm working on angular js just from two weeks. I have a main page index.html in dat i hav included ng-app=dashboardApp.now i should include dashboardApp in controller(example.js) file, i should run evrything from index.html file.M not getting how to do it.Can anyone pls help me out. Thanks Archana -- 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 javascript:. To post to this group, send email to ang...@googlegroups.comjavascript: . Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
Re: [AngularJS] Controller
Thank you sander! can u please tel me how to put my code in plunker as m new to dis On Friday, January 3, 2014 4:44:28 PM UTC+5:30, Sander Elias wrote: Hi, If you put your issue inside a plunk or a fiddle, most of us are happy to help. Now all I can do is tell you you have a error in your code! Regards Sander -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
Re: [AngularJS] Controller
http://plnkr.co/edit/i1ZwRP1CvgKKfXvr1o4h?p=catalogue. Here is the link.example.html,example.js,index.html are the three files m using. Thanks On Friday, January 3, 2014 5:11:03 PM UTC+5:30, Archana wrote: Thank you sander! can u please tel me how to put my code in plunker as m new to dis On Friday, January 3, 2014 4:44:28 PM UTC+5:30, Sander Elias wrote: Hi, If you put your issue inside a plunk or a fiddle, most of us are happy to help. Now all I can do is tell you you have a error in your code! Regards Sander -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
[AngularJS] Re: Releasing Angular Table, the first 100% declarative angular table grid directive
Hi David, Thanks for this - it looks exactly what I need. However I am running into difficulty with the rows of the table not populating when I use Angular 1.2.6. (I have tested on the demo that is in the source and changing from v1.0 to v1.2 breaks it.) Am I right in thinking that this is not supported? I have spent some time trying to fix it but not really sure where to start. Thanks -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
[AngularJS] Re: Recompiling form causing issues
Thanks for the reply. I can't work in the compile function as I need to use the scope to get details from the bound model as to what validation is required. In the end I went the route of your original suggestion which was to compile the individual elements rather than a blank compile of the whole form. That stack overflow post which I mentioned previously which suggested that you needed to recompile the form doesn't seem to hold true after all. In my first attempt it seemed to be the case but I have managed to get it working since. Would still be nice to know the reason for my plunker not working as I would expect, however I have an alternative which I can go with for now. On Thursday, 2 January 2014 18:05:35 UTC, Daniel Tabuenca wrote: In general, you should not call $compile twice on the same piece of dom. If you are adding directives in the children of your directive you are fine just adding the dom from the compile (since the children have not been compiled yet: directive('validateForm', function ($compile) { return { restrict: 'A', compile: function (element, attrs) { var form = element.find('form'); form.append('label ng-show=formName.total.$error.noteven for=totalThe total field should not be even./label'); } }; }); If you need to add additional directives to the same element of your directive, then you should set terminal: true and give it a high priority. This will stop compilation at your directive, which can then modify the dom and call compile again with a maximum priority (so that your directive does not get called again). -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
[AngularJS] Fade in transition
I want a fade in transition, but when the element is not faded in, I don't want it to be visible/clickable. Is the best way to do it using `$animate.addClass/removeClass` with the following CSS? .fade-in { opacity: 0; visibility: hidden; transition: opacity 0.2s; .fade-in-add, .fade-in-remove, .fade-in { visibility: visible; } .fade-in { opacity: 1; } } I want to use `visiblity: hidden;` instead of `display: none;` to keep the document flow. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
[AngularJS] Re: Building a rich text editor directive: dynamic toolbar
Bump! On Tuesday, 17 December 2013 11:30:12 UTC, Oliver Joseph Ash wrote: I want to create a directive for a rich text editor. The rich text editor is formed of the input area and the toolbar (with buttons for commands, such as `bold`). I want to create the toolbar and its buttons dynamically from the configuration that is passed into the rich text editor directive. For example: ui-rich-text-editor commands=['bold', 'italic'] ng:model=foo.data ng:maxlength=1000/ui-rich-text-editor In the linking phase, I can evaluate the `commands` attribute on the scope, and generate the element for each command, before appending all of the buttons into the toolbar. However, I begin to have problems when I want my buttons to be Angular directives themselves. If I append custom elements in the linking phase of the rich text editor, they will not be compiled until afterwards. This is an issue because I need to initialise the toolbar of the rich text editor only when the buttons have compiled. Currently, this is what it looks like to initialise our rich text editor: var scribe = new Scribe(inputElement); // Toolbar element will add event listeners to all of the buttons inside of the // toolbar scribe.use(toolbarPlugin(toolbarElement)); How should I design the rich text editor and the directive so that the toolbar can be generated dynamically? Ultimately (after compilation), the rich text editor might look something like this: ui-rich-text-editor commands=['bold', 'italic'] ng:model=foo.data ng:maxlength=1000 ui-rich-text-editor-input contenteditable=true/ui-rich-text-editor-input ui-rich-text-editor-toolbar ui-rich-text-editor-toolbar-button command=boldBold/ui-rich-text-editor-toolbar-button ui-rich-text-editor-toolbar-button command=italicItalic/ui-rich-text-editor-toolbar-button /ui-rich-text-editor-toolbar /ui-rich-text-editor -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
[AngularJS] Add many icons to nav-tree
Hi all, i displayed data in my nav-tree and i want assign to each branch a specific icon can someone help me ? -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
[AngularJS] Re: Looking for a thesis topic on angular/javascript application frameworks
That's a pretty broad question...any more details you can provide what you're trying to do? There are tons of articles out there comparing the different frameworks and even this website that houses them all: http://todomvc.com/ Certainly an important part of using a framework for me is that I don't have to instantiate and use that framework's code all over my logic (seriously ties your code to theirs). Angular is great in that data returned from their server can stay as plain json and can be used anywhere. Knockout, for example, you have to specifically create observable properties that wrap the data value to get two way binding. A lot of frameworks in the past made it easy to code badly but calling jquery DOM updates everywhere throughout your code (change class name, set width(), show/hide) etcAngular removes all that with directives, a very powerful feature/component unlike any framework. DOM manipulation is very expensive and Angular handles all this for you and makes sure it performs it at the right times. On Thursday, January 2, 2014 1:25:47 AM UTC-5, Sami Dan wrote: Hi, I'm doing my masters in computer science and am looking for a research topic on angular or on javascript application frameworks in general. Any suggestions/recommendations would help. Thanks, -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
Re: [AngularJS] Re: How to use two ng-app in same page
Did you actually create the ```dashboardApp``` module or are you just referencing it without creating it? what exactly isn't working. please provide a plunker/fiddle so we can look at actual code and trace problems Twitter:@alonisser https://twitter.com/alonisser LinkedIn Profile http://www.linkedin.com/in/alonisser Facebook https://www.facebook.com/alonisser *Tech blog:*4p-tech.co.il/blog *Personal Blog:*degeladom.wordpress.com Tel:972-54-6734469 On Fri, Jan 3, 2014 at 7:49 AM, Archana archanas...@gmail.com wrote: This is my example.js file. now m trying to write code for datepicker but m not getting.please do the needful.Thanks 'use strict'; angular.module('dashboardApp'.controller('exampleCtrl', function ($scope) { }); -- 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/j7X4-qRKaM0/unsubscribe. To unsubscribe from this group and all its topics, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
[AngularJS] Re: Looking for a thesis topic on angular/javascript application frameworks
I think a work on the different generation of javascript frameworks could be very interesting (where angular.js and ember,js are the Next generation frameworks, correlating framework development to js specs (es3, es5 es6 etc) and advancing browsers capabilities and new api's (eg html5). thje changing views on the role of js in a software project. etc On Thursday, January 2, 2014 8:25:47 AM UTC+2, Sami Dan wrote: Hi, I'm doing my masters in computer science and am looking for a research topic on angular or on javascript application frameworks in general. Any suggestions/recommendations would help. Thanks, -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
[AngularJS] window.execCommand acting quirky
OK, I have a jsfiddle that demonstrates this issue: http://jsfiddle.net/ed4becky/NJnyU/36/ I have a contenteditable field. when it has focus a formatter bar pops up. Scenerio 1: Select text. Text is highlighted Click the italic button. text is converted to italic and still highlighted Click italic button. text SHOULD revert, but instead nothing happens and text is no longer highlighted. I can select again and repeat So it seems that though it LOOKS selected the second time, its not. So for the bold button I cleared the selection to reflect that. But still an issue Scenario 2: Select text. Text is highlighted Click the bold button. text is converted to bold and selection cleared Select text. Text is highlighted Click the italic button. NOTHING happens and text is highlighted Select text. Text is highlighted Click the italic button. text is converted to italic and still highlighted So whether I clear the selection or not, the real issue seems to be that the selection only works (sticks?) every other time. IF I REMOVE THE REFERENCE TO ng-model IN THE HTML (and remove the dependency on it in the directive), everything works as one would expect. I suspected at first that since the model changed, angular was re-rendering effectively clearing the selection. That would explain Scenario 1. But if that was ALL that was happening, Scenerio 2 should still work. help? -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
Re: [AngularJS] Re: angular custom directive sequence
You can use a pre-link function instead of the default post-link function like this: app.directive(log, function() { return { link: { pre: function(scope, element, attrs) { console.log(PRE LINKED + attrs.name); }, post: function(scope, element, attrs) { console.log(POST LINKED + attrs.name); } } }; }); The pre-link function is backward order from post-link function. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
[AngularJS] Re: Directives Loading Before $resource Returns Data
Oh, that makes sense. I tried running the plunkr code against actual server calls and now receive an empty array. Going to play with this some more. Out of curiousity, how can I use $http to simplify this because I receive the same types of errors when I use the following: .factory(DepositCount, ['$http', function ($http) { return $http.get('./count.json').success(function(response) { return response.data; } }]); I see examples on the AngularJS site showing the use of a success() callback as well as then(). Thanks On Friday, January 3, 2014 5:13:00 AM UTC-6, Sander Elias wrote: Hi, There was noting bad in your data, but if you feed plotr incomplete data, it crashes. Had to put in a check for that. Regards Sander -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
[AngularJS] Re: window.execCommand acting quirky
The problem is in your blur handler. Here's the sequence: 1. You select the cruel word 2. You click on the **bold** button 3. The blur event gets triggered 4. ctlr.$setViewValue(Hello cruel editable world!) is called but since the value is the same as it was before, the view is not re-rendered 5. The click handler gets called and the bold tag is added to your element Let's take a quick pause to see what state we are in: the view now has: ```xml divHello bcruelb/ editable world/div ``` However the model still has: ```javascript Hello cruel editable world ``` Now we do the next sequence: 1. Select cruel again 2. Click on **bold** button 3. The blur event gets triggered 4. ctlr.$setViewValue(Hello bcruel/b editable world!) is called Because the new value has the b tags and the old value didn't, angular detects a change in the model, and things re-render, so you lose your selection. By the time your button handler gets called the selection is lost. Hope this helps. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
[AngularJS] Re: window.execCommand acting quirky
so really an issue is when the DOM get rewritten to include the b tags, the change is NOT being propogated, which means its out of sync for the NEXT call. The issue I'm trying to address with the blur code is the fact that the change (adding the b tags) is NOT getting propogated to the model. What I would like to accomplish is 1) get the change propogated to the model when the new tags are added or removed 2) have a change event triggered so I can mark the field as dirty 3) on (final) blur, save the changes if the field is marked as dirty. since 1 2 never occur neither will 3 -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
Re: [AngularJS] Re: angularjs and grails.
On 31 December 2013 05:24, Praveen Gandhi praveengandh...@gmail.com wrote: I am using Angular with Grails REST. Do you have some code that I can read to learn something? -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
[AngularJS] $httpBackend.whenGET() passThrough() not actually passing through for me
See my StackOverflow post herehttp://stackoverflow.com/questions/20864764/e2e-mock-httpbackend-doesnt-actually-passthrough-for-me and the corresponding failing test in Plunkr herehttp://plnkr.co/edit/FtWs9GUUK1KuFeitwUKX in which I show that I am getting the extended $httpBackend mock but that mock doesn't actually send the matching request to the server; instead it retries the mock (where it fails). I could well be doing something stupid. Let's hope so. OTH, I am sick of the snarky, hasty, know-nothing help I've received so far. Let me stipulate the following: Yes I've followed the instructionshttp://docs.angularjs.org/api/ngMockE2E.%24httpBackend as best I can. Yes I'm using the E2E module and therefore passThrough() is defined Yes, I've examined the pertinent posts in SO and in this Google group. Yes, I know the difference between unit tests that don't talk to the server and integration tests that do; please spare me the tired lecture about how I *ought *to write my tests and stop sending me the same old links. Please look at the Plunkr http://plnkr.co/edit/FtWs9GUUK1KuFeitwUKX and help me fix it. Not only will you help me, you'll help the next developer learn how to present a Jasmine Angular test in Plunkr :) Thanks. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
[AngularJS] Re: Releasing Angular Table, the first 100% declarative angular table grid directive
Hi Andrew, Sorry you're having trouble with angular-table with angular 1.2.6. I created a github issue for it ( https://github.com/davidjnelson/angular-table/issues/38 ). Unfortunately I haven't had time to fix bugs lately, although I really want to. Best, David On Friday, January 3, 2014 4:21:50 AM UTC-8, Andrew Bone wrote: Hi David, Thanks for this - it looks exactly what I need. However I am running into difficulty with the rows of the table not populating when I use Angular 1.2.6. (I have tested on the demo that is in the source and changing from v1.0 to v1.2 breaks it.) Am I right in thinking that this is not supported? I have spent some time trying to fix it but not really sure where to start. Thanks -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
[AngularJS] Re: $httpBackend.whenGET() passThrough() not actually passing through for me
Cross posting from SO: I’m not trying to be snarky, bu I really do think you are mis-understanding the purpose of the $httpBackend that is in the ngMockE2E module. This is not a matter of opinion, the ngMockE2E module is simply not designed nor intended to be used from within a jasmine specification. When duing end-to-end testing there are two sides to the test. One is the angular application that is being tested, the other is the angular-scenario code that lives in the Jasmine Specification. Under E2E tests there are no angular module, or ng-mocks, or anything angular-related on the jasmine side of things (other than the scenario runner). The ngMocksE2E module is designed to be used on the “server” side of things where the actual angular application is executing. It’s main purpose is to enable us to pre-can responses so that integration-level UI testing can proceed much quicker than if each page actually went to the server for JSON. When using jasmine along with ng-mocks, angular will always replace the [image: httpBackend with the mock backend. When adding the `ngMocksE2E` module it will not be able to get ahold of any]httpBackend` and as you have already found out, will just wrap the mock and delegate to it on the pass-through. It would seem that the kind of test you are trying to write is a test that doesn’t test the UI integration, but tests the application javascript and server integration. This is perfectly legitimate style of testing (referred to some as ‘midwayTesting’ in the angular community). Your problem is you are using the wrong tool. I would take a look at this: https://github.com/yearofmoo/ngMidwayTester Which you would use instead of angular-mocks and angular.module() in order to facilitate the kind of testing I’m assuming you want to do. You can read more about it here: http://www.yearofmoo.com/2013/01/full-spectrum-testing-with-angularjs-and-karma.html (apologies if you have already been linked there) -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
Re: [AngularJS] Controller
Hi again, I believe this may not be the right way to create a plnkr. It is giving whole lot of 404s. It must have files that are only relevant to the issue that you want the group to help. So if I have a questions about using Date picker : I would create a plnkr like this - http://plnkr.co/edit/z6cYI2KnriIuRMmBUV1K?p=preview On Fri, Jan 3, 2014 at 5:29 PM, Archana archanas...@gmail.com wrote: http://plnkr.co/edit/i1ZwRP1CvgKKfXvr1o4h?p=catalogue. Here is the link.example.html,example.js,index.html are the three files m using. Thanks On Friday, January 3, 2014 5:11:03 PM UTC+5:30, Archana wrote: Thank you sander! can u please tel me how to put my code in plunker as m new to dis On Friday, January 3, 2014 4:44:28 PM UTC+5:30, Sander Elias wrote: Hi, If you put your issue inside a plunk or a fiddle, most of us are happy to help. Now all I can do is tell you you have a error in your code! Regards Sander -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out. -- Regards, Aadithya C Udupa -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
Re: [AngularJS] Can't connect angular to rails model
You need to reference $scope.todos (todos) in your view. As it stands, your template only references undefined scope values (todo) On Fri, Jan 3, 2014 at 7:17 PM, Steven Brooks brooks.stev...@gmail.comwrote: I am trying to show the index action of a rails app with an angular front-end. Currently, I am able to save the input to my rails model, but no objects are loaded to the page when I refresh. Here is my index action: def index respond_with Todo.all end and here is my TodoController: function TodoController($scope, $filter, $resource) { Todo = $resource(/todos, {id: @id}, {update: {method: 'PUT'}}) $scope.todos = Todo.query() and here is my view: div class=roundedTwo input type=checkbox ng-model=todo.done span class=done-{{todo.done}} todos{{todo.title}} - {{todo.importance}}/span /div I know that putting the query() method on the object is supposed to return as array, but nothing is showing on the page. If I create an object on the page is saves to the database and shows that new object but when I refresh the page none of the objects show. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out. -- chrisrhoden -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
[AngularJS] Re: Can't connect angular to rails model
Hi Steven, you seem to have missed an ng-repeat in your sample, this might get you going: div class=roundedTwo ng-repeat='todo in todos' input type=checkbox ng-model=todo.done span class=done-{{todo.done}} todos{{todo.title}} - {{todo.importance}}/span /div Regards Sander -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
Re: [AngularJS] Controller
Thank you!! I will try On Saturday, January 4, 2014 11:03:50 AM UTC+5:30, Sander Elias wrote: Hi, Took a look at your plunk. It is erroring out all over the place, because lots of the stuff you put in it isn't in the plunk. However, your application needs routing. you put in an ng-view, but you didn't put in the needed routes. Regards, Sander -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
[AngularJS] Re: Searching for angularjs job?
is this job still open? On Friday, October 25, 2013 12:42:52 AM UTC+5:30, Megan Buonamia wrote: Good Afternoon, If you are still looking for the job, we have on in Minneapolis, MN. We are looking for someone who specializes in Angularjs. If interested, please contact me at mbuo...@idsgrp.com! Thanks and I look forward to hearing from you soon! Megan On Sunday, May 26, 2013 12:01:07 PM UTC-5, ng-geek wrote: Hi All, I am looking for anuglarJs job. I worked on plenty frameworks, but I love angular. I have good knowledge of angular and I am good in frontend development. Please let me know if anybody is looking for angular geek. Thanks all -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.