[AngularJS] Re: calling a controller function from another controller function

2014-05-05 Thread Sander Elias
Hi Maxim, As long as you travel down in the scope hierarchy, this is following angular conventions. I created a small sample here: http://plnkr.co/edit/rnNvAPRfOaNkX9XvUbdl?p=preview If you need to call controllers from the bottom up, or from sibling controllers, you probably have a code

[AngularJS] Re: angularjs as frontend and yii (php framework) as backend

2014-05-05 Thread Sander Elias
Hi Padma, You don't need a REST interface. Angular is backend agnostic. You can let it talk to anything you fancy. A REST interface is usually making it a whole lot simpler, but it is not an demand for AngularJS. Regards Sander -- You received this message because you are subscribed to the

[AngularJS] Re: Using multiple directives with ng-options

2014-05-05 Thread Sander Elias
Billy, See, it worked out quite well didn't it ;) Well, there is something more to ng-if and ng-show/hide. For this, you need to use ng-show/hide Regards Sander! -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and

[AngularJS] Re: ngResource interceptors to use promises

2014-05-06 Thread Sander Elias
Hi Kin, You should return the response from your interceptors .then function. Now your then returns nothing, so the then of the calling function will be empty! Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from

[AngularJS] Re: Using multiple directives with ng-options

2014-05-07 Thread Sander Elias
Billy, The plunk you just linked in, still has the css to hide the stuff, and it works as you remove the css. You should not load data into scope in a directive, I might seem a good idea to you now, but trust me on this, it really isn’t. This should be done in a controller. If the data is

[AngularJS] Re: Using multiple directives with ng-options

2014-05-08 Thread Sander Elias
Hi Billy, Well, this one did work. Ok, it looks like you found a bug. While this needs some attention I took a step back and looked at what you were trying to do. Then it occurred to me you are trying to solve business logic with directives. While possible it is not a good idea, and it will

[AngularJS] Re: Advice on application architecture

2014-05-08 Thread Sander Elias
Hi Hillel, Most of the times the answer will be, in a service. Then the preservation of the state becomes a responsibility of that service. Depending on your application and wishes, the service might use just memory, or localStorage or even server-side solutions. Regards Sander -- You

[AngularJS] Re: dynamic data injection

2014-05-08 Thread Sander Elias
Hi Third, Do yourself a favor, drop jquery for the time you are learning AngularJS. You might find the answer to your question if you work through the tutorialhttps://docs.angularjs.org/tutorial . Regards Sander -- You received this message because you are subscribed to the Google Groups

[AngularJS] Re: Need the form to be submitted once validations are done instead of giving me that cross domain error

2014-05-08 Thread Sander Elias
Hi, Most of the time this is a server side issue, and is more easily resolved on the server side. There are some solutions that don't need server side changes, but most of them are quite hacky for more information on the issue have a look at this sitehttp://enable-cors.org/ Regards Sander --

[AngularJS] Re: Advice on application architecture

2014-05-08 Thread Sander Elias
Hi Hillel, No, you don’t need more the 1 service. you can use the route as an identifier for an state object. something like: app.service('state', [ '$location', funtion($location) { var st = {}; this.getState = function () { return

[AngularJS] Re: Using multiple directives with ng-options

2014-05-08 Thread Sander Elias
Hi Billy, Have a second look at my last sample, there is no directive in there at all. in your directive you have this line: if (element[0].name === 'appointment_type'). I think that line smells. You have all the data you need already in your program available, and here you are querying the

[AngularJS] Re: Would you recommend using Angular for a high traffic site?

2014-05-09 Thread Sander Elias
Hi David, Did you do the math? Are you sure angualr.js minified and gzipped is larger than the combination of backbone+jbone+lodash+hogan? Is your site attracting lots of recurring visits? if so, the size argument is even more invalid, as angular gets cached on the first visit. If you use an

[AngularJS] Re: $scope and var

2014-05-09 Thread Sander Elias
Hi Nimesh, Yes the same goes for all variable assignments/accesses. 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

Re: [AngularJS] mg-grid expected behaviour

2014-05-13 Thread Sander Elias
Hi RIchard, I assumed you made a mistake and posted in an unrelated thread! I thought I'll let you know ;) And no, you can ask ng-grid question in this forum. I don't use it, so I can be of little help to you. However, using JQ-2.x is not a good idea, there are still issues with this version.

[AngularJS] Re: Using multiple directives with ng-options

2014-05-13 Thread Sander Elias
Billy, In Angular you don't replace elements. you are working on the data. In my example it does reset the time if the date changes. As that was part of what you asked for, I did add the following line in the sample: ```javascript $scope.appointment.appointment_time = null; //reset

[AngularJS] Re: Using multiple directives with ng-options

2014-05-14 Thread Sander Elias
Hi Billy, I know in angular we shouldnt be doing that we do in jquery as far as re placing the data the way I did there so I have to re-examine my code because I was setting the variable = '' instead of null. Not sure if that makes a different but maybe I set it at the wrong time in the

[AngularJS] Re: Repetitive patterns

2014-05-15 Thread Sander Elias
Hi Breaddes, There are multiple way's to solve this. What do you think about this: http://plnkr.co/edit/A2bW7Fatg0aEEoKqqp0Q?p=preview Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop

[AngularJS] Re: Update $scope.variable value after POST

2014-05-16 Thread Sander Elias
Well, you are assigning your todo's as a result of your $http. That's a change, so the $watch will pick up on this change.. -- 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

[AngularJS] Re: Unable to change $scope variable data using $on.

2014-05-17 Thread Sander Elias
Hi Nabaraj, you need to use $timeout to set your tiers, or use $scope.$apply if you assign you value. Probably you are updating your value outside of angulars scope, and it will not detect the change until the next digest cycle! Regards Sander -- You received this message because you are

[AngularJS] Re: Directive and Controller combination in Single HTML, changes based on route.

2014-05-17 Thread Sander Elias
Hi, you missed the ng-view part of the routing: https://docs.angularjs.org/api/ngRoute/directive/ngView 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

[AngularJS] Re: What is the best way to pull a query parameter from the URL in a non-SPApplication?

2014-05-20 Thread Sander Elias
Dennis, A few things stuck out to me in your message. 1. your jsonresponse.php can read this info out of the caller context, why do you want to pass it in by hand too? (php can see the calling url, right?) 2. $location gives you full access to the URL, you can parse out the

[AngularJS] Re: angularjs radio box and input text

2014-05-20 Thread Sander Elias
Hi Zied, If you have questions like this, it's way easier if you post them in a plunk ;) Here you go: Plunker http://plnkr.co/edit/Bo2u7F?p=preview Play arround with it a bit, it might work a bit different then what you imagined. the missing part was the ng-value, in stead of the value

Re: [AngularJS] Re: Use ui-validate inside a directive template

2014-05-20 Thread Sander Elias
Chris, From the code you posted I can't say what goes wrong. If your validation function does not get called, you have a different problem. Personally I never used ui-valid, so this is too little for me to go on. If you would build a plunk/fiddle/jsbin illustrating your problem, I will happily

[AngularJS] Re: AngularJS and jQuery recompiling dom

2014-05-20 Thread Sander Elias
Hi Axx, Your sample is not a SPA, it are 2 separate pages. That is not a problem, but you need to load angular and stuff on every page or it will not work. Reading up about ng-route https://docs.angularjs.org/api/ngRoute and ng-view https://docs.angularjs.org/api/ngRoute/directive/ngView seems

[AngularJS] Re: detect update in spa

2014-05-20 Thread Sander Elias
Hi Zoltan, You don't need a shared config, or custom http headers for the solution to work! However, you need something on your back-end. If you want to compare versions, you need to to get one off the variables from somewhere else don't you? you can't compare the front-end version to itself.

[AngularJS] Re: angularjs radio box and input text

2014-05-21 Thread Sander Elias
Hi Zied, Your sample just shows what radio buttons do. I have a hard time understanding what it is you are trying to accomplish? is it something like this: http://plnkr.co/edit/Bo2u7F?p=preview Regards Sander -- You received this message because you are subscribed to the Google Groups

Re: [AngularJS] Re: transclude - what am i doing wrong?

2014-05-22 Thread Sander Elias
Hi Tony, Its way easier to let the code do the talking this time! http://plnkr.co/edit/uQZXHfNb4aduTBMRinI7?p=preview Is that enough to help you? Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and

Re: [AngularJS] Re: transclude - what am i doing wrong?

2014-05-23 Thread Sander Elias
Hi Tony, I did reread the thread now. The first time around I thought you were asking for an way to manipulate the trancluded template. My sample showed a way to do just that. Now I realized myself that you have a question about scoping. If you are using a isolated scope, this scope is only

[AngularJS] Re: Tutorialissuewithstep8

2014-05-23 Thread Sander Elias
Hi Albert, Your comment are read for sure, but this is not the place to get it fixed! If you want to help Angular forward, you can file an github issue at thetutorials githttps://github.com/angular/angular-phonecat/issues (you need to be logged in to github for the link to work!) Regards

[AngularJS] Re: Which Version should I use?

2014-05-23 Thread Sander Elias
Hi Ed, There are a few breaking changes between 1.2 and 1.3, and as time passes,the list https://github.com/angular/angular.js/blob/master/CHANGELOG.mdwill get longer. In learning angular there are no big differences, and the breaking changes often need some small rework of a small part of

[AngularJS] Re: How to iterate through the Key-Value pair ?

2014-05-23 Thread Sander Elias
Hi Triven, Your pro.Value is a string, not an object. It's kind of hard iterating a string as an object ;) 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

[AngularJS] Re: Different Model Object use same view

2014-05-23 Thread Sander Elias
Hi Diwan, I will take a look at your issue if you will provide a plunk for it. To answer your question, yes it is possible. 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

[AngularJS] Re: Is javascript single-threaded or why do I need timeout trickery?

2014-05-25 Thread Sander Elias
Hi Larion, You are right, javascript runs in a single thread. Personally I don’t think a setTimeout is a particularly good practice! Sometimes you just have to use it, but its often a source of confusion. At the core of this is the AngularJS digest system. For some changes it takes a full

[AngularJS] Re: Is javascript single-threaded or why do I need timeout trickery?

2014-05-26 Thread Sander Elias
Hi Larion, You are right, it is just javascript. AngularJS is also javascript, so it can't run a digest cycle between 2 statements is it? example in a directive I do: ```javascript scope.model = 'blah'; // model is bound to something else way up in the hierarchy. // here is no time for

[AngularJS] Re: Directive inside directive, wait for html to load

2014-05-26 Thread Sander Elias
Hi Joberto, Have a look at directive priority. Also you can use he angular event system to catch and fire the load event. 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

[AngularJS] Re: HTML view cant reach isolated directive scope

2014-05-26 Thread Sander Elias
Hi onlyOneUrl, So, you are replacing and transcluding an repeated directive with an isolate scope? You should drop the replace, it does not add any value to your directive, it only complicates things! And it's deprecated by the core-team anyway! If you transclude an element, the inner HTML

[AngularJS] Re: how to update scope key from controller

2014-05-27 Thread Sander Elias
Hi Marc, Your controller is operating on a different scope. ng-repeat creates a new scope for every instance. in this case your template is setting editRow on the scope from the repeat, and the controller is setting it's parent. Regards Sander -- You received this message because you are

[AngularJS] Re: need a working multi language (translate) working sample

2014-05-27 Thread Sander Elias
https://github.com/rubenv/angular-gettext-example -- 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

[AngularJS] Controller is invoking 2 time on Single click of a submit button

2014-05-29 Thread Sander Elias
Hi, Do nog load angular twice. Thats the root of your problem. -- 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

[AngularJS] Re: compile vs link for populating a select field

2014-06-01 Thread Sander Elias
Hi Iain, Well, the compile phase only runs once. So it depends on your circumstances. If your data is static during the application, use the compile phase, otherwise use the link fase. The better solution is move the xhr to a service, and deal with it in there, and just inject this service to

[AngularJS] Re: How to update model from outside Angular?

2014-06-01 Thread Sander Elias
Hi Marko, As Witold pointed out, the apply isn't optional. To answer your question, yes, this is a correct way to update from the outside. However, you need to be sure your change isn't going to have side-effects that are less pleasant. While sometimes it's perfectly ok to do something like

[AngularJS] Re: Advice on BKM for integrating standalone lib across all controllers

2014-06-01 Thread Sander Elias
Hi Chris, I'm glad you got this down! 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,

[AngularJS] Re: How to multiply the return values of different controllers?

2014-06-01 Thread Sander Elias
Hi Modesto, I have no clue what it is you are trying to accomplish. Also dumping code here like you did isn't following the guidelines https://groups.google.com/forum/#!forum/angular. If you build a plunk/fiddle/jsbin showing what it is you are trying, there is a much larger chance of getting

[AngularJS] Re: Scopes in an ng-if / ng-transclude directive

2014-06-02 Thread Sander Elias
Hi Eric, I like to see it as grown behavior, more then as intended behavior. But yes, your observations are correct. This is the way angular behaves in your scenario. That is, if you insist on having an isolate scope. Here http://plnkr.co/edit/5Kd2TcWaTQhyE7HXk9C3?p=preview is an

[AngularJS] Re: How to update model from outside Angular?

2014-06-02 Thread Sander Elias
Hi Marko, Your code sample confuses me a bit, can you please explain what you are trying to do. as I see your code it does the following, On the device ready event, it bootstraps angular. so angular only starts after the event, and then you need to update angular after the event? does the

[AngularJS] Re: How to multiply the return values of different controllers?

2014-06-02 Thread Sander Elias
Hi Modesto, Ah, now I see what it is you are after. I see you just started with Angular. Do yourself a favor, and drop jquery for the time you are learning AngularJS. have a look at this video: https://egghead.io/lessons/angularjs-sharing-data-between-controllers (and while you are at it,

[AngularJS] Re: How to update model from outside Angular?

2014-06-02 Thread Sander Elias
Hi Marko, Why can't you set the model then the normal way inside angular? Or do you need some information off the even inside your angualr app? Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop

[AngularJS] Re: How to multiply the return values of different controllers?

2014-06-02 Thread Sander Elias
Hi Modesto, You are welcome, and the link works fine for me ;) 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.

[AngularJS] Re: How to update model from outside Angular?

2014-06-02 Thread Sander Elias
Hi Marko, Just set it in your controller. the controller will only exists after the event (as the rest of your angular app will too!) Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop receiving

[AngularJS] Re: Simple ngClass question

2014-06-02 Thread Sander Elias
Hi Istvan, you can’t add multiple classes within a single property. Remember it still are properties of an object. i ng-class={'fa': true, 'fa-eye-slash' : blinkBoolean, 'fa-eye' : !blinkBoolean }/i will work tough. Still, I would prefer option 2. Regards Sander ​ -- You received this

[AngularJS] Re: Is it possible to call directive with module name?

2014-06-03 Thread Sander Elias
Hi Huy, Short answer: No, this is not possible. What most people do in this case is prefix the directives by hand. In your case you would en up with sharedShowAvatar and emailShowAvatar. Some people like to put in a dot between the prefix and the actual name, like shared.showAvatar and

[AngularJS] Re: How to update model from outside Angular?

2014-06-03 Thread Sander Elias
Hi Marko, If you have events happening you can't catch within angular, your way is indeed a good way to put them in. (I can not come up with something that needs this!) You only need to bootstrap Angular once, once that is done, you can pretty much handle everything from within angular. This

[AngularJS] Re: Angular JS not working in Chrome 24

2014-06-03 Thread Sander Elias
Hi Jaydeep, Move the {{understand}}} inside the div/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

[AngularJS] Re: Angular JS not working in Chrome 24

2014-06-03 Thread Sander Elias
Hi Jaydeep, Probably some script isn't loading. have a look at your developers console (F12) and go from there. 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

[AngularJS] Re: Angular Way to control a Directive from Controller?

2014-06-03 Thread Sander Elias
Hi All, As an sample to his question, I created this small plunk http://goo.gl/J1ANqq to show a way on how this can be done. It is a sort of discussion starter. For myself, I think this is a very angular way to expose selected parts to the view and to the scopes inside the directive. also

[AngularJS] Re: controller as vs $scope

2014-06-03 Thread Sander Elias
Hi Migajek, The advantage is that it is easier to comprehend. Also, in the view/html its more clear where your data is coming from. There is also a difference in life-time between a controller and a scope. Also a scope comes with build-in goodies like $scope.$watch/$emit/$on/... Those are not

[AngularJS] Re: remove angular markup

2014-06-03 Thread Sander Elias
Hi Billy, Yes, I noticed your message ;) If you really want this, it is possible. Not easy, but possible. The question should be, why? In an angular app, the HTML as exposed by the browser is only a temporary snapshot of part from the state of your app. So why should you be concerned by that?

[AngularJS] Re: remove angular markup

2014-06-03 Thread Sander Elias
Hi Billy, I was just looking back for something else, and I found this plunk http://goo.gl/UDw0cM I created a while ago. it uses bootstrap and angular. Have a look at the markup. Now imagine you need to reproduce this using jquery (or some other framework) Do you think the markup that gets

Re: [AngularJS] Re: Angular Way to control a Directive from Controller?

2014-06-03 Thread Sander Elias
Hi Witold, The crux of the example was not solving a color thingie the simplest way possible. It is on how to communicate with an directive. on how an directive can expose some parts of it's functionality to the view, or even to a controller. An more real world scenario would be an tabs

[AngularJS] Re: wish to be more intuitively object-oriented.

2014-06-03 Thread Sander Elias
Hi Leo, Hmm, of all the source in AngularJS, you pick the part that's build like this to be able to be compatible with jquery (which is build pretty much similar to jqLite). And yes, I did look into the JQ code a long time ago, so there were no surprises like that for me. How is this proof

Re: [AngularJS] Re: change $location.path() but prevent route change?

2014-06-04 Thread Sander Elias
Hi Nikita, I just know it is possible, I have not done it myself yet. It is not just flipping some switch and be done with it. To get this working you need to study the HTML5 history api https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history. this article

[AngularJS] Re: How to reapply directive when scope is changed in AngularJS

2014-06-04 Thread Sander Elias
Hi Jason, Yes it is working for me. It works even if I remove the 3rth parameter. It works in Chrome, Firefox and opera. Did you try cleaning your browsers cache? Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from

Re: [AngularJS] XMLHttpRequest cannot load error

2014-06-04 Thread Sander Elias
Hi Vladimir, look up CORS 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

[AngularJS] Re: controller as vs $scope

2014-06-04 Thread Sander Elias
Hi Migajek, Well, if you use ng-controller, a scope will get created before your controller gets instantiated, and if will be destroyed after the controller is gone. there is a small difference there, and for 99% of the practical uses, it makes no difference there. However, ng-controller is

[AngularJS] Re: Angular Way to control a Directive from Controller?

2014-06-04 Thread Sander Elias
Hi Luca..., How is this different from the example I gave earlier on? You are using the scope directly in your directives controller, this is coupling the directive and the controller in a very tight way. The idea of my sample was on how to expose an API from within a directive. Most of the

[AngularJS] Re: Angularjs ng-model update

2014-06-05 Thread Sander Elias
Hi Madhu. In your controller do $scope.input = newValue. However, that is not related to the input attribute apearing in your template! Regards Sander ​ -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop

[AngularJS] Re: Window resizing differences between v1.0.8 and v1.2.x?

2014-06-05 Thread Sander Elias
Hi Dan, Well, without an sample, it's difficult to give you advice. Can you put up a plunk/fiddle/jsbin showing your problem? Did you try another 1.2.x version? 1.2.9 is quite old, the current version is 1.2.16. I know there were a few jquery related patches in there, but I don't recall in

[AngularJS] Re: Advantage vs disadvantage of wrapping module or controller with anonymous function

2014-06-06 Thread Sander Elias
Hi aSet..., hmmm, an anonymous question on anonymous function, go figure... Ok, it is always best practice to use an IIFE http://benalman.com/news/2010/11/immediately-invoked-function-expression/(Immediately Invoked Function Expression), even when you are not using angular. There are no

[AngularJS] Re: Dear Google, solve our AngularJS/SPA vs SEO/social sharing issues by a free prerender service :)

2014-06-06 Thread Sander Elias
Hi Dennis, This group is Angular users helping Angular users. I get your frustration but you are using the wrong channel. Apparently its over your head finding the right channel ;-D Nevertheless, just because you asked in this group, I traveled back in time, and called my buddy Larry, and

[AngularJS] Re: How I can know nearest scope what contain the element?

2014-06-07 Thread Sander Elias
Hi Олег, According trough the docs and the code, de scope function should do it’s own recursion. Can you provide a plunk with the issue you are experience? Oh, this is the entire .scope() function out of the angular source: function(element) { // Can't use jqLiteData here directly so we

[AngularJS] Re: Best practice to put ng-controller

2014-06-07 Thread Sander Elias
Hi Andi, There is no “better” it’s just different. Your first approach is the most common way angularJS apps are build. The second way is seldom seen. With good reason, in practice that’s kind of confusing. Let me explain a bit. If you put in a ng-controller=’xxx’ there will be a new instance

[AngularJS] Re: :first child in angularjs

2014-06-11 Thread Sander Elias
Hi Madu, In AngularJS, your data is in control, so if your change your first element in the array, the DOM will follow automatically. Usually you don't need to fiddle around with DOM elements. Perhaps you have hit some exception, but I can't tell from your message. If you would post an

[AngularJS] Re: Is it possible to create a general purpose recursive directive ?

2014-06-11 Thread Sander Elias
Hi Al-Shwafi, Search for recursion in this group, there are some more or less generic solutions in there! 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

[AngularJS] Re: angular compile code added dynamically

2014-06-11 Thread Sander Elias
Hi Maxim, Have a look at the $compile service. But usually you don't need anything outside angular to add parts to the page. I think you might want to look at ng-include too. usually one does not need to compile once angular is bootstrapped! Regards Sander -- You received this message because

[AngularJS] Re: AngularJS Expressions does not get evaluated, on changing localhost to different name in tomcat server 7

2014-06-13 Thread Sander Elias
Hi Satish, As Stephen told you, we can't help you if you provide no information. What are the errors in the developers console? (ctrl-f12 in chrome!) Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group

[AngularJS] Re: Angular Way to control a Directive from Controller?

2014-06-13 Thread Sander Elias
Hi Łukasz, I did not read your code very well the first time around! You are indeed doing the same thing as I did, with the exception that I used the controllerAs to expose my directive name to the scope, and you are exposing it to the scope using a variable name. This is a clever way, and

[AngularJS] Re: Angular app design questions: controllers, views and conditional transitions

2014-06-13 Thread Sander Elias
Hi Marko, I would put the search parameters in a service, and the search (including its results) in another one. You can then inject them in all the view's controllers that need them. As service are singletons, they keep their state. Regards Sander -- You received this message because you

[AngularJS] Re: Angular app design questions: controllers, views and conditional transitions

2014-06-13 Thread Sander Elias
Marko, Do the search before you change the view, if the result is not according to your wishes, you can adapt de search paraemters in that view, if it's ok, change the view, and the results you already have will get displayed. (hence the 2 services!) Regards Sander -- You received this

[AngularJS] Re: View is not updating when countdown time has been reached

2014-06-14 Thread Sander Elias
Hi Telagrapic, You problem has nothing to do with $apply or $timeout. If you want to start a new timer, you need to reset the time your compare against, not the countdown counter. Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To

[AngularJS] Re: Get desktop notifications on change in status of a bug logged in database using angular js

2014-06-15 Thread Sander Elias
HI Satish, Yes, it can be done. At least if you transfer your application to an chrome-app https://developer.chrome.com/apps/about_apps. Perhaps other browsers have similar functionality, but then you have to add support each one off those. Also if you only need the notification part, that can

[AngularJS] Re: AngularJS simple DataBinding Issue

2014-06-15 Thread Sander Elias
Hi Anshul, After you have changed your data, you need to tell prism to rerender http://prismjs.com/extending.html#api its part. Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop receiving

[AngularJS] Re: Angular get and set json data issue

2014-06-15 Thread Sander Elias
Justin, When learning angular (I suppose that is what you are doing?) it is a *really good idea* to *drop jQuery*, at least for the time you are getting to know angular. Also, you are trying to build a single page app right? navigating away in an login button is then also not the way to go.

[AngularJS] Re: How to load nested JSON URLs and display in a template

2014-06-15 Thread Sander Elias
Hi David, Well, I have no idea what those url’s return. That makes it hard to give a complete solution to your problem. div ng-repeat=room in rooms h1 {{ room.room }} span class=floor pull-right{{ room.floor }}/span /h1 div ng-repeat=api_endpoint in

[AngularJS] Re: AngularJS simple DataBinding Issue

2014-06-16 Thread Sander Elias
Hi Anshul, Once prism has run the {{data}} content of your original element is replaced by a prism rendered content. Simply calling the highlight function of prism, is just reredering the old content again. (prism replaces the angular binding!) In this case you can’t do what you want without

[AngularJS] Re: Improve Angularjs performance by lazy loading accordion content

2014-06-16 Thread Sander Elias
Ho Fasil, Have a look at ng-if. If you use this to 'hide' the content of your tabs, it is taken out of the DOM (probably the cause of your problem) Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and

[AngularJS] Re: AngularJS simple DataBinding Issue

2014-06-16 Thread Sander Elias
Hi Anshul, Seems you have some more reading to do then ;-P What happens is, that once prism has replaced the html with the formatted code, it breaks the connection that angular needs. the {{data}} is tells angular, insert the content of data here, and show it. Prism breaks that link, and

Re: [AngularJS] Re: How to load nested JSON URLs and display in a template

2014-06-16 Thread Sander Elias
Hi David, Yeah, I have enough thoughts, some of them are even relevant to your problem :-P David, this is less common as you would think. You are missing the point that you can’t use raw JSON data in your view, you need to handle that first. Mostly this kind of stuff is handled in a

[AngularJS] Re: The best way to use filter and ignore diacritics while do searching

2014-06-18 Thread Sander Elias
Hi Nomore, You need to make an lookuptable and replace all the characters in the string with versions without diacritics. then you can do the filtering on the strings without those. Keeping both versions of the sting enables you to display with, and search without them. Does that make sense?

[AngularJS] Re: how to solve appendChild is undefined on element of directive ?

2014-06-18 Thread Sander Elias
Hi Adil, appendChild is a native DOM function not found in jqLite or jQuery. Try elem[0] instead. in angualr elem is a wrapped jqlite element, not a dom element. Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from

[AngularJS] Re: AngularJS working if I open the html file, not when I access the same html from the server url

2014-06-21 Thread Sander Elias
Hi Parthiban, I think you forgot to copy the .js files to your webserver. For a more definitive answer, have a look at the developers console. Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop

[AngularJS] Re: Track by $index doesn't update view even if underline object has been changed

2014-06-24 Thread Sander Elias
Hi Pankaj, This question is very well answered in the SO answers, what is it you expect from reposting here? 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

[AngularJS] Re: How to use transclude: true and isolate scope at the same time

2014-06-24 Thread Sander Elias
Hi Sam, Well, a large part of it is a feature indeed. but along the way, there was some quirky behaviour in there too. Have a look at the 1.2.18 changelog https://github.com/angular/angular.js/blob/master/CHANGELOG.md#bug-fixes-2, (hmm, the stable release got some of those too!) and the

[AngularJS] Re: Track by $index doesn't update view even if underline object has been changed

2014-06-24 Thread Sander Elias
Pankaj, If you read through the SO answers, there is a pretty clear explanation why the track by $index is not suited for what you are trying to do. The last answer tells you exactly what and why it is happening in your code. At least you need to put an unique id in appliedgrids, and track on

[AngularJS] Re: Track by $index doesn't update view even if underline object has been changed

2014-06-24 Thread Sander Elias
Pankaj, http://plnkr.co/edit/mbavWJk3YX3V80XimlUW?p=preview Got rid off all the scripts that were not needed, and removed the track by $index, and it seems to work. Regards Sander ​ -- You received this message because you are subscribed to the Google Groups AngularJS group. To

[AngularJS] Re: Can't transclude an input element

2014-06-24 Thread Sander Elias
Hi Paul, Really? Can you rebuild the sample off ward using that technique? I'm really curious on how you managed to get it working so that is also works well inside an ng-repeat and so on! Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS

[AngularJS] Re: ng-bind-html-unsafe in IE8

2014-06-24 Thread Sander Elias
Hi Kasper, The article tag is an HTML5 tag that's not natively supported by IE8 http://www.nickyeoman.com/blog/html/118-html5-tags-in-ie8, did you take this in account? If not, you must first load an shim/shiv to enable the article tag in IE8, before you can use it in angular. Regards Sander

[AngularJS] Re: ng-bind-html-unsafe in IE8

2014-06-24 Thread Sander Elias
].description) Perhaps it is a better idea if you build a fiddle/jsbin (I’m not sure plunker works in IE8..) to show us your issue. Regards Sander Elias ​ -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop

[AngularJS] Re: Incrementar e decrementar - Incrementar e decrementar

2014-06-24 Thread Sander Elias
Hi Gustavo, You mean something like this: http://plnkr.co/edit/vY1vRpdqQJaldrHoJqaL?p=preview ? Or did I read your question the wrong way? Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop

[AngularJS] Re: ng-bind-html-unsafe in IE8

2014-06-25 Thread Sander Elias
Hi Kasper, I don't have an working IE8 at hand, can you tell me what this version is doing? http://jsfiddle.net/By295/4/ 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

[AngularJS] Re: AngularJs namespace?

2014-06-25 Thread Sander Elias
Hi Ke, Are you new to ecmascript as well? The angular variable is just an normal object, the line you showed, just makes sure it's declared global in the browser. While this may look (and even feel) as a namespace, it is not a true namespace. It's just a global variable. Regards Sander --

<    1   2   3   4   5   6   7   8   9   10   >