[AngularJS] Re: Change href can't update the data which bind to ng-src or ng-href

2015-03-17 Thread Sander Elias
Hi 庄奕峰, Well, actually you are using 1-way bindings. As you have found out, changing the DOM underneath angular won't update the scope. Also relaying on the $attrs subsystem might be a bit shaky in this case. Also, your use of ngModel is actually not what you might expect. If you want this,

[AngularJS] Re: Change href can't update the data which bind to ng-src or ng-href

2015-03-17 Thread 庄奕峰
Thanks. But how can I write a directive using the 2-way binding? I just learned Angular for a short time, really not good at writing some special directive, can you help me fix the example in the following link? :) Fiddle: http://jsfiddle.net/castiel_zyf/0hL4ucxf/ 在 2015年3月18日星期三

[AngularJS] applying a class to ui-view depending on the current state (ng-enter doesn't trigger)

2015-03-17 Thread Owen Williams
See http://plnkr.co/edit/3QjBzRu5VjOzK7czn71e?p=preview I'm applying a class to ui-view depending on the current state - so I can target each new view and apply different animations.. The issue is: the state class seems to be added after the ng-enter class (see plunker above). So initial

[AngularJS] export pdf in angularjs

2015-03-17 Thread Muhammad Omer
Hello all, i want to know that how can i export pdf file from angularjs. ive exported excel file and it is working fine. following is code for excel * $scope.exportData = function () {* *debugger;* *var blob = new Blob([document.getElementById('export').innerHTML], {* *

[AngularJS] Re: No Google ads in Angular Partials

2015-03-17 Thread Shuhao Hu
in my experiment http://www.filepoodles.com/#/testadsenseA I put adsense in vi-view and i click a button to redirect to another page with adsense . (press the button repeatly) during the four time redirect page, the adsense is show correctly, but next one redirect , the adsnse show empty.

[AngularJS] Re: Blocked frame error when signing in with gplus implemented with angularjs

2015-03-17 Thread Tanner Linsley
I've been having the same exact problem. Probably 90% of the time, this will happen, and the rest of the time, it works great. On Monday, December 30, 2013 at 3:42:13 PM UTC-7, Samuel Ako wrote: am using angular js to implement sign in with Google plus. At certain times everything works

[AngularJS] Re: Jquery plugin not working correctly

2015-03-17 Thread Aimery Marsily
I have create a JSFiddle to show the problem : http://jsfiddle.net/rvBKJ/14/ As you can see JQuery append Chosen to all the select elements but it doesn't work when using Angular and ng-If... -- You received this message because you are subscribed to the Google Groups AngularJS group. To

[AngularJS] Unit Testing with AngularJS $httpBackend problems

2015-03-17 Thread Shawn Shaw
I am frustrated with my testing efforts thus far and am hoping someone can help. I currently have a controller, LoginController, which depends on an authenticationSvc. Within the LoginController, there is a $scope.login function which passes a user object off to the authenticationSvc. That

[AngularJS] Bind variable in script tag

2015-03-17 Thread Antonio Gil
Hi! How I can bind variable in script tag inside head tag? Example (highlighted in red): index.html !doctype html html ng-app=miApp ng-controller=AppCtrl as vm head script type=text/javascript var idAnalytics = '{{vm.idAnalytics}}'; var param =

Re: [AngularJS] Bind variable in script tag

2015-03-17 Thread Volodymyr Stolyarchuk
yes, you can't bind controller to variable in scrpit tag. Your example is wrong On Tue, Mar 17, 2015 at 11:48 AM, Antonio Gil alg...@gmail.com wrote: Thanks for these links! That code was just an example. So there is no way to bind from the controller to script tag? :) El martes, 17 de

Re: [AngularJS] Bind variable in script tag

2015-03-17 Thread Antonio Gil
Thanks for these links! That code was just an example. So there is no way to bind from the controller to script tag? :) El martes, 17 de marzo de 2015, 10:33:03 (UTC+1), Volodymyr Stolyarchuk escribió: this is very strange code. I think in your code vm.idAnalytics and vm.param is not bind

Re: [AngularJS] Bind variable in script tag

2015-03-17 Thread Antonio Gil
Perfect! thanks for the clarification! Greetings! El martes, 17 de marzo de 2015, 11:08:29 (UTC+1), Volodymyr Stolyarchuk escribió: yes, you can't bind controller to variable in scrpit tag. Your example is wrong On Tue, Mar 17, 2015 at 11:48 AM, Antonio Gil alg...@gmail.com javascript:

[AngularJS] Integration Of JointJs with Angular

2015-03-17 Thread Umair Shahid
Hi Need Help in integration of jointjs with anuglarjs. Anyone who know please 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

Re: [AngularJS] Bind variable in script tag

2015-03-17 Thread Volodymyr Stolyarchuk
this is very strange code. I think in your code vm.idAnalytics and vm.param is not bind yet, so you can't use its Do you want use Google analytics in you angular application? Why you don't look at services like these? https://github.com/revolunet/angular-google-analytics

[AngularJS] Re: Minification of angular files

2015-03-17 Thread Satish B
GULPJS is really confusing me :( It is used on the client side right? I want to just concatinate and minify my angular files like - services.js, filter.js, controller.js and if possible bootstrap files. Hope all this is possible? Still not able to figure out :( On Monday, March 16, 2015 at

[AngularJS] can i link with DLL and API with angularJS

2015-03-17 Thread Komal Singh
Hi i am new user of AngularJS. i am planning a project so if i make my project on AngularJS then can i link DLL files and my project API with angularJS? Thanks in advance Komal Singh -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe

[AngularJS] Angular trimming attribute value

2015-03-17 Thread Miguel Guedes
I have got a directive acting on the document's title that accepts a `prefix´ attribute that is prepended to the actual document title. The problem I'm having is that Angular is trimming the contents even though I specifically need it to retain whitespace. I've tried using the

[AngularJS] Re: Jquery plugin not working correctly

2015-03-17 Thread 유종우
DOM not created when ng-if == false 2015년 3월 17일 화요일 오전 7시 33분 0초 UTC+9, Aimery Marsily 님의 말: Hi, I'm using AngularJS on an edit page of my website. On this page I load Chosen and Tooltipster (that I use all around the website) but I can't understand why they are not working. No errors,

[AngularJS] Re: Jquery plugin not working correctly

2015-03-17 Thread jongwoo Yoo
Dom is not created when ng-if == false http://jsfiddle.net/dbwhddn10/rvBKJ/15/ 2015년 3월 17일 화요일 오전 7시 33분 0초 UTC+9, Aimery Marsily 님의 말: Hi, I'm using AngularJS on an edit page of my website. On this page I load Chosen and Tooltipster (that I use all around the website) but I can't

[AngularJS] Re: Angular trimming attribute value

2015-03-17 Thread Sander Elias
Hi Miguel, Without a plunk I’m not too sure, however, if you really need the exact text from the attribute, you can do something like $element[0].getAttribute('prefix') in your directive and be done with it. Regards Sander ​ -- You received this message because you are subscribed to the

[AngularJS] Change href can't update the data which bind to ng-src or ng-href

2015-03-17 Thread 庄奕峰
I ask the same question in the stackoverflow, someone give a work solution using MutationObserver, but only IE11 support this feature. And I am also curious about why the function like scope.$watch() didn't work, is there some problem in my code? Or the $watch function can't achieve the

[AngularJS] Re: Jquery plugin not working correctly

2015-03-17 Thread Sander Elias
Hi Aimery, This is mostly a problem with how jQuery works. As Jongwoo pointed out, the DOM is not created when ng-if=true, and it is hidden when you use ng-show. jQuery scans the DOM at the DOMContentLoaded event, about the same time angular kicks in. This causes a race condition in your

Re: [AngularJS] Unit Testing with AngularJS $httpBackend problems

2015-03-17 Thread Tandon, Rishi
Try segregating the controller injection from beforeEach block as: var setupLoginController = function() { inject(function($controller) { ctrl = $controller(LoginController, { $scope: $scope }); }); }; and call

Re: [AngularJS] Re: Jquery plugin not working correctly

2015-03-17 Thread Gustavo Cruz
Why not use ui-select? It´s so much easier On Tue, Mar 17, 2015 at 6:12 PM, Aimery Marsily marsilyaim...@gmail.com wrote: I have create a JSFiddle to show the problem : http://jsfiddle.net/rvBKJ/14/ As you can see JQuery append Chosen to all the select elements but it doesn't work when

[AngularJS] Re: Question about AngularJS G+ community

2015-03-17 Thread 'Michael Bielski' via AngularJS
Speaking strictly for myself, if the job involves Angular I don't mind. Everything else I routinely mark as SPAM. -- 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

[AngularJS] Question about AngularJS G+ community

2015-03-17 Thread Greg Dorval
Hi, Before I post I want to know if it's ok to post job opportunities in the AngularJS G+ community. There's no category for job postings and I know they're not welcome in some communities so I thought I'd check first. Thanks. *Greg Dorval* * Senior Data Architect* at *NAV Canada*

Re: [AngularJS] Re: Minification of angular files

2015-03-17 Thread Volodymyr Stolyarchuk
yes, it is possible and tools like gulp or grunt is most simple for this tasks) On Tue, Mar 17, 2015 at 12:36 PM, Satish B technotip.commun...@gmail.com wrote: GULPJS is really confusing me :( It is used on the client side right? I want to just concatinate and minify my angular files like -

[AngularJS] Re: Loading data from xml

2015-03-17 Thread Rohit Salviya
Check this example: http://plnkr.co/edit/Hpx8GPHt0IqKADj8K1Qc?p=info On Wednesday, 20 February 2013 22:47:36 UTC+5:30, Bhushan Nagaraj wrote: Hi All, I have tried loading data from a JSON file and it worked like a charm. I am trying the same for an xml file but doesn't seem to work. How or

Re: [AngularJS] Re: Minification of angular files

2015-03-17 Thread Luke Kende
Personally use Codekit (Mac) for both minification and sass compilation. It may be simpler to start with for you, maybe not, but throwing out something else to offer. On Tuesday, March 17, 2015 at 5:13:30 AM UTC-6, Volodymyr Stolyarchuk wrote: yes, it is possible and tools like gulp or grunt