[AngularJS] Re: Angular 1.3 ngClass CSS animation fails

2014-09-25 Thread Sander Elias
Francisc, As my plunk showed you the classes are added and removed from the dom, so the angualJS part seems to work. Meaning, if your animations don't fire, the problem must be somewhere else, agreed? Probably somewhere inside the CSS part. Regards Sander -- You received this message

[AngularJS] Re: $http using the response data out of the callback - load the JSON formated response in a factory property

2014-09-25 Thread Sander Elias
Hi Constantinescu, You mean something like this: http://plnkr.co/edit/cWZAmW12SM5dXatKyP6S?p=preview Does that help you? If not, drop me a note, with what you are missing, and I will take a second look! Regards Sander -- You received this message because you are subscribed to the Google

Re: [AngularJS] Re: HTML code converted to directive, jQuery cannot find the elements anymore

2014-09-25 Thread Sander Elias
HI Jan Willem, first of all, I need to instanciate scooch to get a working (scrollable) carousel. I do this by the following code: $('.m-scooch').scooch() inside the document.ready() I think the instanciation does not need to be implemented in de directive of the dropdown though. Hmm, I

Re: [AngularJS] Re: HTML code converted to directive, jQuery cannot find the elements anymore

2014-09-26 Thread Sander Elias
Hi Jan Willem, Yes, you are right, it will start at 18:00. Food is included. We will have a introduction and a workshop with angular 2.0. We have talked the stuff trough, and it will be very informative/awesome ;) Besides the official agenda, there will be room for networking and socializing.

[AngularJS] Re: Directive attributes evaluated in the directive's new scope instead of the parent scope

2014-09-27 Thread Sander Elias
Hi Zane, My first thought was that it expected behavior. But after some short contemplating, and playing around with your plunk, getting confused. It still counts as expected behavior. Have a look at what I did with the plunk (before reading the rest of the MSG! stop right here reading!, and

Re: [AngularJS] Re: HTML code converted to directive, jQuery cannot find the elements anymore

2014-09-27 Thread Sander Elias
Hi Jan Willem, I see you are on the right path. You are building directives that are directly solving your current issues. That is great. But I’ll give you this thought: scope.$watch('selectedLanguageFunction', function(){ element.scooch('reset'); }) What will happen if you want to reuse

[AngularJS] Re: Angular 1.3 ngClass CSS animation fails

2014-09-29 Thread Sander Elias
Hi Francisc, You are welcome. 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

[AngularJS] Re: single initialisation of a service?

2014-09-29 Thread Sander Elias
Hi Stefaan, You are loading new pages from the server every time, so, you are not initializing a service twice, you are getting the same service again on a new page. If you want to store information in between different pages, you should look into sessionStorage, ore localStorage. basicly you

[AngularJS] Re: Code Style with Rails API

2014-09-29 Thread Sander Elias
Hi César, The code style is for directives and html-attributes. It is maybe a bit cleaner if you use it for your data-properties too. But in your case, I would simply just use the underscored property names. There is no issue with those in angular. Regards Sander -- You received this message

[AngularJS] Re: State stack in angular - anyone ever try this?

2014-10-01 Thread Sander Elias
Hi Eric, You might be interested in this: https://www.youtube.com/watch?v=3ZLlRQJp5Fg Not angular, but on subject! -- 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] Re: How to optimize this code block?

2014-10-01 Thread Sander Elias
Hi Evgeny, You can use a ngRepeat for this, something line this: ul class=nav nav-pills li ng-repeat='filter in typeFilterButtons' ng-class={active:ctrl.isFilterType(filter.type)} a href ng-click=ctrl.setFilterType(){{filter.name}}/a /li /ul Regards Sander ​ -- You received

[AngularJS] Re: ng-repeat do not update after database insert

2014-10-01 Thread Sander Elias
Hi Eliran, Did you check if the server did the update already? Some servers do take some time to inject new stuff into their database, and you might get results back not containing your new user yet. Regards Sander -- You received this message because you are subscribed to the Google Groups

[AngularJS] Re: $http() vs $.ajax() different response

2014-10-01 Thread Sander Elias
Hi Korneliusz, Did you examine the requests in the developers tools? jQuery ajax does some not so standard things. Probably a difference in headers. 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: State stack in angular - anyone ever try this?

2014-10-02 Thread Sander Elias
Hi Eric, yeah, it's not something that's added easy to an existing app. But keep it in mind before building your next! I like the idea of an dispatcher, that should not be too hard to create for angular. Also I like the idea of an event-bus, that support the idea of channels. ideally the

[AngularJS] Re: Model Change Detection: Object.observe Polyfill vs Angular Dirty Checking

2014-10-03 Thread Sander Elias
Hi Santiago, You are comparing entirely different things. In the angular part, you force a $digest., and the polymer part you are just calling the task that does the watching. basically you compare a full update with a check that checks if there is a need to do a more comprehensive test. and

[AngularJS] Re: minification of angularjs itself

2014-10-05 Thread Sander Elias
and minify the libraries yourself. This is however not recommend, there are some issues that you should take in account if you want to minify angular yourself. Regards Sander Elias -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from

[AngularJS] Re: templateURL and route config fails sporatically

2014-10-05 Thread Sander Elias
Hi Adam, This is very strange indeed. I just checked the source, and as far as i can see there is nothing in there that can cause this issue. Can you create a ample that reproduces this issue? preferable on plunk or fiddle, but any reproduction would work. Regards Sander -- You received this

[AngularJS] Re: ngHide/ngShow digestion problem

2014-10-05 Thread Sander Elias
Hi Jonathan, It’s difficult to say anything about this, without having a reproducible example. While researching your bug, I found nothing that could explain this. If you have a a spot in your system where you can test this, can you try testing it without a $ in the resource name? Meaning,

[AngularJS] Re: Directive and stream real time data

2014-10-05 Thread Sander Elias
Hi Jordy, How are you delivering your stream to the browser? This should be done in a service, and your directive can $watch this service, or you service can notify subscribers. BTW, a isolated scope with a value ‘=’ should not receive an {{value}} expresion from your template, but a scope

[AngularJS] Re: Best practice for ngResource

2014-10-05 Thread Sander Elias
Hi Olivier, I don't use ngResource myself, but version 1 is the way to go if you do in my opinion. Its the way it is designed to be used that way. Then I have a small observation on your code. The following code: function find(id) { var deferred = $q.defer(); if (id) {

[AngularJS] Re: Access to $event.target in directive

2014-10-05 Thread Sander Elias
Hi Korneliusz, If you have a question like this, you will get an answer much sooner if you link a plunk/fiddle. But may I ask, why do you need the event? It look you want to know the target so you can so some DOM manipulation. In Angular, this is mostly not needed, so I wondered what your

[AngularJS] Re: Using ngRoute correctly

2014-10-06 Thread Sander Elias
Hi izanywhere, AngularJS routes work linear, (As do most routing systems!) This means, that as soon a path evaluates as valid, that’s the route being used. in your case, probably nothing goes behind .when('/:page', ...) Regards Sander ​ -- You received this message because you are

[AngularJS] Re: Using ngRoute correctly

2014-10-06 Thread Sander Elias
}]) On Monday, October 6, 2014 2:05:57 PM UTC+8, Sander Elias wrote: Hi izanywhere, AngularJS routes work linear, (As do most routing systems!) This means, that as soon a path evaluates as valid, that’s the route being used. in your case, probably nothing goes behind .when('/:page

[AngularJS] Re: Directive and stream real time data

2014-10-06 Thread Sander Elias
Hi Jordy, Well, it is a way. I don't know if its the best way in your situation, without seeing the rest of the 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,

[AngularJS] Re: Custom filter in ng-repeat ran 1200 instead of 100?

2014-10-06 Thread Sander Elias
Hi Mykhaylo, Perhaps you are better of with an custom filer in this case. I'm not too sure tough. This kind of question should have a plunk illustrating the issue. If you would have included a plunk, I would have too a deeper look into this. Regards Sander -- You received this message

Re: [AngularJS] Re: Access to $event.target in directive

2014-10-06 Thread Sander Elias
Hi, Here is a alternative way: http://plnkr.co/edit/300piXZILuUnWpthGWIN?p=preview In this way, you are ot relaying on the DOM for app logic, but you keep it in a controller. Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To

Re: [AngularJS] Re: minification of angularjs itself

2014-10-06 Thread Sander Elias
Hi Johan, No, that's not the problem. The problem is the order in wich you concatenate your files. AngularJS should go first. 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: Model Change Detection: Object.observe Polyfill vs Angular Dirty Checking

2014-10-07 Thread Sander Elias
an item in a todo-list) This is the most interesting metric of all, an will be a close call in most cases. You also should look at the time it takes to build and refine both applications. Programmer efficiency is also a very important metric. Regards Sander Elias -- You received this message

[AngularJS] Re: Ideal holder for AngularJS Global or Utility functions

2014-10-07 Thread Sander Elias
Amogh, What is it you are trying to do in the configuration part, that needs all this stuff? You can indeed use a constant to provide utility functions if you want. I have done this a couple of times, but it isn't widely used. Regards Sander -- You received this message because you are

Re: [AngularJS] Re: minification of angularjs itself

2014-10-07 Thread Sander Elias
Hi Johan, That's right, but you didn't mention jQuery earlier, so I didn't take that in account ;) 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] Re: Ideal holder for AngularJS Global or Utility functions

2014-10-07 Thread Sander Elias
Hi Amogh, A few day's ago I created a sample that does something similar http://goo.gl/QCEmDX. It is not using config for anything else as the routing. Have a look at it, perhaps it might help you. Regards Sander -- You received this message because you are subscribed to the Google Groups

[AngularJS] Re: how to setup an app that is a collection of apps?

2014-10-07 Thread Sander Elias
Hi Anthony, Have you seen this: https://github.com/geddski/overmind ? Not exactly what you are asking for, but I think it will help you. 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: The Dot in the model

2014-10-11 Thread Sander Elias
Hi Łukasz, - does either of the solutions hides some bugs or flaws? No, it’s basically exactly the same thing. However, I think the second approach might confuse you. let me explain. you decide to do some assigning in your controller, like setting the selectedUserIs so you do in your

Re: [AngularJS] Re: The Dot in the model

2014-10-11 Thread Sander Elias
hi Łukasz, Nope, no speed difference. If you are putting in information pro reference, it’s just that. 2 pointers to the same data. There is some documentation and recorded talk in where the core team hints the controllerAs syntax is from now on the preferred way to do things. But as I see

[AngularJS] Re: Getting the ng-model name in controller

2014-10-13 Thread Sander Elias
Hi Vignesh, This can be done fairly simple, but I seriously think you should not be dong this inside a controller. Its a kind of design that will get you into trouble later on, while extending/maintaining your app. var el = angular.element('input'); var names = []; var model = '';

[AngularJS] Re: ng-model, directives, transclusion, scope, wtf?

2014-10-15 Thread Sander Elias
Hi Jens, Your message is spot on!. Don't let one bring down your spirit. Some people just can't be helped! Keep up the good work you are doing in our group! Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this

[AngularJS] Re: How can a directive access its element's content after it has been completely compiled/interpolated?

2014-10-15 Thread Sander Elias
Hi Jon, Don’t try to use the DOM as a source of data, that’s still old school thinking. If you need some.expression data in your directive, put it in directly, like div my-directive=ssome.expression {{ other.stuff }} {{ some.expression.repeated }} /div you can then read it in you link

Re: [AngularJS] Re: Angular app.run() with async data

2014-10-16 Thread Sander Elias
Hi all questioneers ;) I made a sample http://goo.gl/JOk7CK with a way to tackle this issue, quite a while ago. (I just checked, in feb) If you have questions about it, just ask! Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To

[AngularJS] Re: $resource or Restangular

2014-10-16 Thread Sander Elias
Hi Anton, Personally I don't mind a one-men show. However, I understand when one is a bit hesitant in using this. Have a look over the code, and see if it's something you could maintain yourself. If the answer is yes, there is little risk involved, and you can use the project at hand. If no,

[AngularJS] Re: Splice in array with ng-repeat

2014-10-16 Thread Sander Elias
Hi Joberto, If you do tricks like this to array’s you need a track by in your ng-repeat. and not on $index You need to add this because of the way angular keeps track on where to put which element in the DOM I suspect you have an id in the timeslots array? do something like this: div

[AngularJS] Re: Routers that trigger controller method

2014-10-16 Thread Sander Elias
Hi Wouter, Yes this is possible. but you need to keep your data in a service, and use an resolve to get it into your controller. If you need a bit more then this, just ask, and I will see if I have an ready example. I don't have the time right now. Regards Sander -- You received this

[AngularJS] Re: custom directive with isolated scope in ng-repeat problem

2014-10-16 Thread Sander Elias
Hi Michal, I didn’t look at your code at all, so I might be slightly off here ;) your second sample is an expression inside an expression. While this is possible, it will not work by itself. the first one is just a simple JS variable, that angular can parse in 1 go. It’s more a JavaScript

[AngularJS] Re: Splice in array with ng-repeat

2014-10-16 Thread Sander Elias
Hi Joberto, Sorry, I missed a little subtle part :-D try this: div ng-repeat=timeSlot in timeSlots track by timeSlot.id class=time-slot Sorry for the confusion Regards Sander ​ -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe

Re: [AngularJS] Re: custom directive with isolated scope in ng-repeat problem

2014-10-16 Thread Sander Elias
Hi Michal, I just looked at your sample. It's evaluated all-right, but you can't expect angular to evaluate your expression twice, and that's what would be needed for that! Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To

[AngularJS] Re: view update

2014-10-17 Thread Sander Elias
Hi Elric, Yes it is. There are many ways you can to something like this. 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

[AngularJS] Re: Routers that trigger controller method

2014-10-17 Thread Sander Elias
Hi Wouter, So you got it working! great! 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

[AngularJS] Re: Routers that trigger controller method

2014-10-17 Thread Sander Elias
Hi Wouter, It might be the best solution in your case. I can't really judge without seeing the compete code. However, in a number of cases it is indeed the best solution. I did read the 'refresh' problem a bit wrong, I tough you where talking about the controller getting instantiated, and then

[AngularJS] Re: Drill down in json - yql

2014-10-17 Thread Sander Elias
Hi Drisak, This is more of a JavaScript question then a Angular one. Still Angular provides you with a solution for this. You can use its $parse function to extract the value out of your json. I created a small sample for http://goo.gl/BZD7sO you here Regards Sander -- You received this

[AngularJS] Re: view update

2014-10-18 Thread Sander Elias
Hi Eric, Well, you asked IF it was possible, not HOW right ;) I created a small example http://goo.gl/tbtOItgiving you a way to do this -- 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: how do I set up my angularjs controller

2014-10-18 Thread Sander Elias
Hi Rodrigo, Too bad you didn’t build a plunk/fiddle, It would be much easier to show you how it can be done that way. I think your controller is overly verbose, unless you stripped out a lot of code that’s not needed for the question. this will to exactly the same thing:

[AngularJS] Study group (hosted by, and thus local to me!) msg will be in dutch!

2014-10-18 Thread Sander Elias
belangstelling wil ik over een week of 2 beginnen. Discussie graag centraal houden op deze google+ post https://plus.google.com/117443371632474753864/posts/YoNZKuaQHD4 Met vriendelijke groet Sander Elias -- You received this message because you are subscribed to the Google Groups AngularJS group

Re: [AngularJS] Study group (hosted by, and thus local to me!) msg will be in dutch!

2014-10-18 Thread Sander Elias
Hi Mounika, Who is us? Or did you mean to include you in the msg? I'm looking into organizing an html5/JavaScript/angular study group up to 6 people. I will host it over here at my location (prinsenbeek NL). I was aiming for ditch speaking guests, but I don't mind if there are more

[AngularJS] Re: Important Queries

2014-10-20 Thread Sander Elias
Hi Vikas, first of all, welcome to our list. 1. Structure (folder file) of Angular JS. There is no set structure. However, the new guidelines are suggesting to order by feature. John Papa has a style guide http://www.johnpapa.net/angular-style-guide/that has quite some followers. 2. Is it

Re: [AngularJS] Guidelines: #3

2014-10-21 Thread Sander Elias
Hi Eric, The link works for me, on chrome and firefox. How ever, it's an quite old plunk, with an ancient version off Angular, You can use my template if you like: http://plnkr.co/edit/tpl:t6EYzpT3VpfMAGsJHKqZ Regards Sander -- You received this message because you are subscribed to the

[AngularJS] ng-europe

2014-10-21 Thread Sander Elias
Hi, I'm prepping to go in transit to ng-europe. Anyone caring to meet up 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 email to

[AngularJS] Re: Potential bug when compileProvider debugInfoEnabled is set to false

2014-10-24 Thread Sander Elias
Hi Cimballi, When debugInfoEnabled is set to true, some things are a bit relaxed/different. You found one! Angular.element expects a string or a dom element, not a jQuery wrapped one. So you need to unwrap your element, or just use pure DOM functions to get one like this:

[AngularJS] Re: ng repeat repeats more times than array length

2014-10-24 Thread Sander Elias
Hi Erivan, This is not a problem with the ngRepeat. Its part of how angular works. You can't do what you are doing in this way. the ngIf will gets evaluated on every digest cycle. If there is a change in the models data anywhere, that will cause a new digest cycle. You can't predict the number

Re: [AngularJS] Request method (GET) turns into OPTIONS

2014-10-24 Thread Sander Elias
Hi Andres, This is more a server problem then it is an AngularJS problem. You need to enable CORS http://enable-cors.org/server.htmlproperly on your server. Almost anything you need to know about CORS is on the site I linked. If you still have questions, don't hesitate to ask them here!

Re: [AngularJS] How to dynamically add validations to forms via a directive?

2014-10-24 Thread Sander Elias
Hi Igor, I'm still a bit groggy from ngEurope. So I didn't really read your code. If you want me to take a more serious look, make a plunker http://plnkr.co/edit/tpl:t6EYzpT3VpfMAGsJHKqZ?p=catalogueout of it. Regards Sander -- You received this message because you are subscribed to the Google

Re: [AngularJS] Route interpolation

2014-10-24 Thread Sander Elias
Hi Marc, As I just said somewhere else, I'm still a bit groggy from ngEurope. So I might have missed a point in your question. can't you just inject $routeParams https://docs.angularjs.org/api/ngRoute/service/$routeParams into your controller/whatever where you need this? Regards Sander --

[AngularJS] Re: How to coopt ng-repeat ?

2014-10-24 Thread Sander Elias
Hi Gary, I highly doubt that this is something that fits inclusion into AngularJS itself. But there is a lot of information missing to me, like: 1. What kind of attribute you want to inject. 2. At what moment you want to add this? (before or after the repeat runs?) 3. Is there

[AngularJS] Re: Migration from Angular 1.24 to 1.3 - Unknown Error

2014-10-24 Thread Sander Elias
Hi Dominik, Firstly, are you sure your updated all your dependencies too? This is a common thing that happens. If so, can you please create a as minimal possible plunk http://plnkr.co/edit/tpl:t6EYzpT3VpfMAGsJHKqZ?p=catalogueshowing your issue? *Edit: I am running in hasbang mode, not

[AngularJS] Re: How to get the URL back out of $resource?

2014-10-25 Thread Sander Elias
Hi Richard, Before I dive in deeply into this, why don’t you just build your own service for doing this? something like: (function () { cachedResource.$inject = ['$resource']; function cachedResource($resource) { var cache = {}; return function (url, paramDefaults,

Re: [AngularJS] Re: How to coopt ng-repeat ?

2014-10-25 Thread Sander Elias
Hi Gary, Ah, now I get the picture a bit more clearly. I have an additional couple of questions now ;) 1. this is clearly still a concept (correct me if I'm wrong!). When are you planning for release? 2. Are you aware that this concept will not work with Angular 2? (not in it's current

Re: [AngularJS] Re: How to coopt ng-repeat ?

2014-10-25 Thread Sander Elias
Hi Gary, I just realized I need to add some info to my point 2. The reason it will not work with Angular 2 is because most, if not all the things you want to do will be already taken care of in there. Things to consider, in Angular 2.0 there will NOT be: - scope.apply - (ng-)controllers

[AngularJS] Re: Videos from ng-europe

2014-10-26 Thread Sander Elias
Hi Eduardo, They will become available within 2 weeks. I will put them here as soon as they become available. Regards Sander Elias -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop receiving emails from

Re: [AngularJS] Angularjs 2.0 Only provide Dart?

2014-10-27 Thread Sander Elias
Sander Elias -- 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

Re: [AngularJS] Re: How to coopt ng-repeat ?

2014-10-27 Thread Sander Elias
Hi Garys I'm sure there are going to be plenty of edge cases.. That's why I wanted something simple at first. I'm hoping to get 90% case coverage with 10% effort ? I'm afraid that in this case the numbers will be more like 75% coverage with 40% effort. But don't let me talk you out of it.

[AngularJS] Re: isolate scope $destroy event

2014-10-27 Thread Sander Elias
Hi Chrisopher, Per, Yes, this is expected behavior. An isolate scope is indeed well isolated. For good reasons. There are a couple of things you can do. Firstly, you can do what Per suggested in his msg. Secondly, you can listen do something like $scope.$parent.$on('$destroy',function ()

[AngularJS] Re: Angularjs issue - $http.get not working and changed into OPTIONS - Cross domain

2014-10-27 Thread Sander Elias
Hi Amadese, CORS is mainly a server side problem http://enable-cors.org/. Have a look at the site I just linked. Probably the answer for your server is right there. Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe

Re: [AngularJS] Route interpolation

2014-10-27 Thread Sander Elias
Hi Marc, I could also write my own forEach and isUndefined in plain javascript. But since AngularJS already does this they expose it through an API, and I don't have to write it. The core team has on a number of occasions put out, that they where unhappy with this decision. They do regret

[AngularJS] Re: Angularjs issue - $http.get not working and changed into OPTIONS - Cross domain

2014-10-27 Thread Sander Elias
Hi Amadese, If you open the developer tools in your browser, what is the error you are getting? 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

[AngularJS] Re: isolate scope $destroy event

2014-10-27 Thread Sander Elias
Hi Per, That's the spirit! :-) BTW, I do agree that the documentation on this a a tiny bit scarce ;) 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

[AngularJS] Re: Angularjs issue - $http.get not working and changed into OPTIONS - Cross domain

2014-10-28 Thread Sander Elias
Hi Amadese, You seem to miss the needed headers for CORS, the server needs to provide those. (your app seems to to ok, as you get an response to an option request.) With the needed headers missing, the browser will come to a full halt on your request, and drop things off while no data comes to

[AngularJS] Re: Attaching ng-show in directive

2014-10-28 Thread Sander Elias
Hi Sonal, If you add directives to an existing, and already compiled directive, you need to recompile it. In this case, I would not do that, but just use some style manipulation to show/hide the element. something like: `element.style.display=none;` Drop me a note if you want an elaborate

[AngularJS] Re: Attaching ng-show in directive

2014-10-28 Thread Sander Elias
Hi Sonal, Sure you can use css to show/hide stuff using angular. function myShowThingie() { var DDO = { restrict: 'A' }; DDO.link = function(scope, el, attrs) { scope.$watch(attrs['myShowThingie'], function(bool) { if (typeof bool ===

[AngularJS] Re: show select field options dynamically

2014-10-28 Thread Sander Elias
Hi Debasish, I'm not sure I can follow what it is you want to accomplish. can you put a sample in a plunk http://plnkr.co/edit/tpl:t6EYzpT3VpfMAGsJHKqZ?p=catalogue? That way we can play with it, and you have a better change getting an answer! Regards Sander -- You received this message

[AngularJS] ngEurope videos

2014-10-28 Thread Sander Elias
Hi All, For those that are interested, the video's from ngEuope are starting to appear https://www.youtube.com/channel/UCEGUP3TJJfMsEM_1y8iviSQ 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: AngularJS: How to apply view animations only sometimes?

2014-10-28 Thread Sander Elias
Hi Alex, Not an animation crack, but just went over the documentation. You can globally disable/enable animations pro element with $animate.enabled(Boolean , element) Regards Sander ​ -- You received this message because you are subscribed to the Google Groups AngularJS group. To

[AngularJS] Re: AtScript and generators

2014-10-28 Thread Sander Elias
Hi Oran, Where did you hear that? That's not what is being said (yet). It's a very moving target, so, nothing is set in stone yet. However, MS is moving typescript to support the full scope of ES6. Only if/when this gets done, the angular team will maybe pick up typescript. If it's not, they

[AngularJS] Re: How to get the URL back out of $resource?

2014-10-28 Thread Sander Elias
Hi Richard, You know the URL when you call out for the $resource, don't you? It might be a good idea to store it then, and keep it around for later on. My first idea is however, when configuring the resource in the first place, why don't you add an `deleteAll` method to it? That's the place

[AngularJS] Re: AtScript and generators

2014-10-28 Thread Sander Elias
Hi Oran, I was there, so I know what has been said ;) I talked with the core team a lot. If you listen closely, is is saying things as 'like TypeScript', and so on. However I do get where you got your impression. Bottom line, they won't use typescript if it does not support the whole of ES6.

[AngularJS] Re: AtScript and generators

2014-10-29 Thread Sander Elias
Hi Oran, Well, Even if that is the case, it won't concern your code. You are free to use whatever language you are comfortable with, as long as it compiles to es5/es6 So, if you are a big fan of coffee Script, go ahead and use it. If anything else fancy's you, go ahead, you can use it. For

[AngularJS] Re: ng-include passing parameters to templates

2014-10-29 Thread Sander Elias
Hi Atluri, Sure it does: http://plnkr.co/edit/SKDCES?p=preview In your version, both templates shared a single scope/controller. In a single scope, there can only be one scope.name so If you change the name then, it will change everywhere where you are using it. Regards Sander ​ -- You

[AngularJS] Re: AtScript and generators

2014-10-29 Thread Sander Elias
Oran, Yeah, I know. I want it NOW!, but alas, I still have to deliver my code now, and my customers are aren't even close to an blunt edge, let alone the cutting edge! And I can use the full of ES5, There are some of our colleges that still need to do ES3! Regards Sander -- You received

[AngularJS] Re: AtScript and generators

2014-10-29 Thread Sander Elias
Oran, Oh, BTW, the list of languages that compile to JS is quite a bit longer then just those few ;) https://github.com/jashkenas/coffeescript/wiki/list-of-languages-that-compile-to-js -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe

[AngularJS] Re: Replace \n with newLine

2014-10-29 Thread Sander Elias
https://www.google.nl/search?q=Replace+%5Cn+with+newLineoq=Replace+%5Cn+with+newLineaqs=chrome..69i57sourceid=chromees_sm=93ie=UTF-8#safe=offq=Replace+%5Cn+with+newLine+javascript -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from

[AngularJS] Re: Using AngularJS for new web development

2014-10-29 Thread Sander Elias
Hi lak2007blr, How long do you need your project to be run? What is the estimated delivery time? Angular 1.3 will get *at least 1.5 to 2 years official suppor*t after 2.0 is released. And as it is developed fully in the open, I suspect community support will last quite a while after that. Do

[AngularJS] Re: AngularJS: How to apply view animations only sometimes?

2014-10-29 Thread Sander Elias
Hi Alex, I went over the current documentation. The provider I referred to is able to en/disable animations from within your script, based on the element, and a boolean. And yes, you can intercept routing, and prevent a view from loading that way. However, you need to do the scrolling

[AngularJS] Re: Angularjs issue - $http.get not working and changed into OPTIONS - Cross domain

2014-10-29 Thread Sander Elias
Amadese, you can’t use Access-Control-Allow-Origin:'*' in a lot of circumstances. In stead of a star, you must put the name of the domain you are calling in there. in your case, that would probably be: 'dev.testmyserver' Hope this helps a bit, Regards Sander ​ -- You received this message

[AngularJS] Re: Using AngularJS for new web development

2014-10-30 Thread Sander Elias
this on his/her personal name, but check their employers. This all makes sure angular is a safe bet. With kind regards Sander Elias -- 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: Using AngularJS for new web development

2014-10-30 Thread Sander Elias
I created a small blogspot http://softwarewhoos.blogspot.nl/2014/10/is-angular-20-hurting-community.html out of this! -- 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: Angular scope (and performance)

2014-10-30 Thread Sander Elias
Hi John, First of all, perhaps it's a good idea to debounce https://docs.angularjs.org/api/ng/directive/ngModelOptionsthe user input. this will reduce the number of times a digest cycle will kick in. If you have thos other controllers active, and if you have watched in there, there isn't much

Re: [AngularJS] Re: AtScript and generators

2014-10-30 Thread Sander Elias
Hi Kyle, Don't be sad. The main reason they did not pick any of those, is that they all stray (more or less) away from JavaScript. As Misko said it, they are NOT making a new language. They are just adding a few extension to JS. And probably those extensions will probably end up in the

Re: [AngularJS] Re: AtScript and generators

2014-10-30 Thread Sander Elias
Hi Kyle, I get your sentiment. It is indeed sad that none of those languages added support for annotations and/or introspections. Types are more or less solved in a couple of them. However, I'm glad they decided to go this direction. It will not force any of us to use an language you do not

[AngularJS] Re: problem compile templete in ie11.

2014-10-30 Thread Sander Elias
Hi DErek, You can't share your application running on localhost with others on the internet! Did you check the developers console in IE11? My bet, there is some error in there, that might help you along! Regards Sander -- You received this message because you are subscribed to the Google

[AngularJS] Re: No environments match URL Warning Messages- Need these to stop!

2014-10-30 Thread Sander Elias
Hi Darin, I just checked, but the string No environments match URL does not exists in angular nor in angualr-router or in ui-router. Did you check your browser’s plugins? Regards Sander ​ -- You received this message because you are subscribed to the Google Groups AngularJS group. To

[AngularJS] Re: problem compile templete in ie11.

2014-10-31 Thread Sander Elias
Hi DErek, It works fine for me in IE11. Perhaps you turned on compatability mode in IE? https://lh3.googleusercontent.com/-GUTywl2KLd0/VFMzvcf2I0I/AAABBB4/FgN5wurQryQ/s1600/screenshot.jpg Regards Sander -- You received this message because you are subscribed to the Google Groups

[AngularJS] Re: Cannot read property 'then' of undefined

2014-10-31 Thread Sander Elias
Hi Stefan, I can't really help you without seeing the code you use to change your `counts`. It looks like there is some promise stuff going on. It would help if you would a sample plunker http://plnkr.co/edit/tpl:t6EYzpT3VpfMAGsJHKqZ?p=catalogue, showing your problem in the simplest form

[AngularJS] Re: No environments match URL Warning Messages- Need these to stop!

2014-10-31 Thread Sander Elias
Hi Darins, I'm glad you found the answer! 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

<    3   4   5   6   7   8   9   10   11   12   >