[AngularJS] AngularJS + requireJS + testing directives with templateUrl

2015-03-19 Thread Yonatan Kra
Hi, I know this has been discussed and solved in many places. I've read it all and tried evrything they have. The point is - it's just not working... I have a simple directive which loads a temlpate from an html file. When trying to load the directive for testing, I get: Unexpected request: GET

[AngularJS] A view caching example

2014-07-15 Thread Yonatan Kra
Hi, I'm using angularjs version 1.2.19 on Chrome browser. I have a SPA with several views (around 8). Each view is packed with dynamic objects (like kendoui widgets, tons of listeners etc.). Now that everything's working fine, I want to fine tune things. I've read about 2 methods that can be

[AngularJS] Caching dom elements

2014-06-09 Thread Yonatan Kra
Hi, In my SPA, I have several directives (or DOM elements with directives, if you like) that repeat themselves. Caching simple HTML snippets is just like caching strings. This becomes more complex when I have a more dynamic structure. Here are 3 examples. 1) I have a webGL plugin that is being

Re: [AngularJS] ng-animate doesn't work?

2014-05-26 Thread Yonatan Kra
4 where you have angular.module called, stick 'ngAnimate' in there with 'kendo.directives', and 'ngSanitize' e On Mon, May 26, 2014 at 1:06 AM, Yonatan Kra kra.y...@gmail.comjavascript: wrote: Hi, I have this simple ng-include example: http://plnkr.co/edit/tiQpR5ssqNqizrh0q8wV?p

[AngularJS] $http.get not working

2014-05-15 Thread Yonatan Kra
Hi, I have the following directive which sends a get request to the server. Here is the code: var params = { data: { 'userID': $scope.tasks.id, 'Age': $scope.aversion.choice, 'Experience': $scope.aversion.choice, 'Gender': $scope.aversion.choice, 'Nationality':

[AngularJS] View is not updated

2014-04-08 Thread Yonatan Kra
Hi, I have this plunkr: http://plnkr.co/edit/YvsuLoHzX9eqb7FhDgXA?p=preview When entering chars into the text box, the form validates correctly and it says true. If you use the select box before entering chars into the text box, the form validates BUT the view is not updated correctly (it still

[AngularJS] Re: Static menu and static directive

2014-04-08 Thread Yonatan Kra
Hi, Thanks a lot. Regarding the first issue - what happens to the menuCtrlr once I route to a new url? Would the route function handle only the viewCtrlr and leave menuCtrlr as is? About the second issue, your code helps me with other matters :) My problem is that my directive loads a third

[AngularJS] Re: View is not updated

2014-04-08 Thread Yonatan Kra
Hi, Thanks, but I do not believe this is the case... When select is changed, I get to the true statement (you can check it by adding a debug point in both if options. It always comes to true, but it changes the view only after I type something. On Tuesday, April 8, 2014 3:46:54 PM UTC+3,

[AngularJS] Re: View is not updated

2014-04-08 Thread Yonatan Kra
$observe!!! of course! I've just read about it 2 days ago... entering my 3rd month in Angular and still finding new concepts to grasp every hour... thanks a lot! On Tuesday, April 8, 2014 4:32:49 PM UTC+3, Guilherme Meireles wrote: The ngModel changes we're triggered at different times for the

[AngularJS] Re: View is not updated

2014-04-08 Thread Yonatan Kra
in the view. So there's still a bug - or I'm missing something fundamental. On Tuesday, April 8, 2014 4:35:12 PM UTC+3, Yonatan Kra wrote: $observe!!! of course! I've just read about it 2 days ago... entering my 3rd month in Angular and still finding new concepts to grasp every hour... thanks a lot

Re: [AngularJS] Re: View is not updated

2014-04-08 Thread Yonatan Kra
, Yonatan Kra wrote: Over-excitement... I'm still getting it wrong though... In both our plunkr's it starts false (even though it's supposed to be true, since debugging in the if statement shows it is validated as true). In addition, changing the select changes nothing in our state, even though

[AngularJS] Static menu and static directive

2014-04-07 Thread Yonatan Kra
Hi, I have built a nice app with angular js and it's working fine. I have 2 questions that are quite similar: 1. I have a menu that's the same for all of my routes/views. The reason the menu is inside the view and not static in the main index.html is that I need data from services

[AngularJS] Re: Static menu and static directive

2014-04-07 Thread Yonatan Kra
not make the connection to my case with that. Is this the one? Thanks again :) On Monday, April 7, 2014 2:37:18 PM UTC+3, Yonatan Kra wrote: Hi, I have built a nice app with angular js and it's working fine. I have 2 questions that are quite similar: 1. I have a menu that's the same

[AngularJS] Common functions/scope variables

2014-03-12 Thread Yonatan Kra
Hi, I have a few common functions/services/scope variables. Here's an example: controller1: $scope.param1 = service1; $scope.param2 = service2; $scope.param3 = service3; $scope.someParam = []; controller2: $scope.param1 = service1; $scope.param2 = service2; $scope.param3 = service3;

[AngularJS] Adding special symbols in bound data

2014-02-27 Thread Yonatan Kra
Hi, I have a simple bound data such that: div ng-repeat=item in items ng-bind=item/div *items *exist in the scope and hold several text and/or HTML snippets (very simple snippets). Some of my items contain special symbols like: #176 (which is the degree symbol). When they are printed out, I see

Re: [AngularJS] Re: Passing variables from one page to another

2014-02-14 Thread Yonatan Kra
! On Wed, Feb 12, 2014 at 7:28 AM, Yonatan Kra kra.yona...@gmail.comwrote: Thanks. It makes much more sense now (as usual with things that work :)). How about value? Would it work the same? e.g. myApp.value('myValue',{ myStatus: ok }); or only with a service ( *myApp.service('myService

Re: [AngularJS] Angularjs-socket.io

2014-02-14 Thread Yonatan Kra
! - Sonny On 02/06/2014 01:56 AM, Yonatan Kra wrote: Hi, Thanks for your answer and example. If I understand your code correctly, what you are doing is to load the socket service in a controller and every time check if it was activated before. If it was, call the callback. If it wasn't, open

Re: [AngularJS] Re: Passing variables from one page to another

2014-02-12 Thread Yonatan Kra
into the controller that is loaded with the view. It will make sense more as you use it and explore it. On Wed, Feb 12, 2014 at 12:53 AM, Yonatan Kra kra.yona...@gmail.comwrote: Hi, Thanks. That's roughly what I did. I have 2 questions. The simple one: Are you handling the views from

[AngularJS] Filter function input is undefined

2014-02-12 Thread Yonatan Kra
Hi, In my partial I have this: div ng-repeat=item in items|myCustomFilter{{item.Name}}/div In my filter I have: define(['./module'], function (filters) { 'use strict'; return filters.filter('myCustomFilter', function () { return function (item) { if (item.Name

Re: [AngularJS] Re: Passing variables from one page to another

2014-02-11 Thread Yonatan Kra
; $scope.userClickedFolder(folder){ MyService.setCurrentView(folder) } } function OtherCtrl(){ } On Monday, February 10, 2014 8:40:31 AM UTC-7, Yonatan Kra wrote: I have a SPA (single page app). I am trying to keep data of one route, when moving to another, so if a person returns to the route

[AngularJS] Passing variables from one page to another

2014-02-10 Thread Yonatan Kra
I have a SPA (single page app). I am trying to keep data of one route, when moving to another, so if a person returns to the route, he'll see it in exactly the same state he left it. In example, I have an inbox page (e.g. #/inbox). On this page, a person can see his inbox, and gets new messages

[AngularJS] Dynamic directive placement

2014-02-06 Thread Yonatan Kra
Hi, I have a partial that's loading using a directive. What I'm trying to do is setup a div inside this directive to load another directive dynamically. In this case, *ng-click*, but it can be anything else. Here's the plunkr: http://plnkr.co/edit/lAlUA2HFy78VlP5m4270?p=preview I have 2

[AngularJS] Can I listen on a change in service?

2014-02-06 Thread Yonatan Kra
Hi, I have a service that keeps my data across views (a simple json). Is there a way for me to watch on changes for this service from a directive? -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop receiving

Re: [AngularJS] Can I listen on a change in service?

2014-02-06 Thread Yonatan Kra
on a Models service to pull its object, but it uses attributes instead. Generally, that's the right way to go. On Thu, Feb 6, 2014 at 12:11 PM, Yonatan Kra kra.yona...@gmail.comwrote: Hi, I have a service that keeps my data across views (a simple json). Is there a way for me to watch on changes

[AngularJS] Angularjs-socket.io

2014-02-05 Thread Yonatan Kra
Hi, I'm pretty new to Angular (about 2 weeks of trial and error) and it looks amazing so far. I think I'm now ready to dive into complex integration with socket.io. I've created a service that creates a port listener (something very simple). I have 2 questions about it: 1) The service needs to be

Re: [AngularJS] Angularjs-socket.io

2014-02-05 Thread Yonatan Kra
to ensure that the changes propagate through the application. - Sonny On 02/05/2014 05:04 PM, Yonatan Kra wrote: Hi, I'm pretty new to Angular (about 2 weeks of trial and error) and it looks amazing so far. I think I'm now ready to dive into complex integration with socket.io. I've

[AngularJS] Saving data from one page to another

2014-01-31 Thread Yonatan Kra
Hi, In my app, I need to keep one page active all the time (for instance - the incoming emails page, which is updated all the time and I need to keep track when new emails come in, keep new emails in bold, old emails normal etc.). Data coming in from the server is just new emails coming in - I

Re: [AngularJS] Saving data from one page to another

2014-01-31 Thread Yonatan Kra
I've just read it briefly in the docs. Would that be the place where I can keep globals/constants and the likes? Thanks On Fri, Jan 31, 2014 at 1:50 PM, Bernhard Rode m...@bernhardrode.de wrote: Have you had a look at Angular services? You may bind on to your Apps root. 2014-01-31 Yonatan

[AngularJS] Angular-kendoui and the compiler

2014-01-29 Thread Yonatan Kra
Hi, I'm new to angular, and I'm looking for a way to integrate it with kendoui. I'm using the angular-kendo.js which works nicely for simple cases, but I would like more advanced templating (e.g. use angular directives). Here's my piece of code http://plnkr.co/edit/xvdxaIpF2EtSQ7EPH87r In this

[AngularJS] [[object HTMLUlistElement]] after compile is outputed

2014-01-29 Thread Yonatan Kra
Hi, I have this code inside my directive list-directive: return function(scope){ var html_markup = 'ulli ng-repeat=item in itemsng-include src=item.contentUrl/ng-include/li/ul'; elm.html($compile(html_markup)(scope); } in my controller I have: $scope.items = [ {contentUrl: myDomain.com},