[AngularJS] Re: LoginForm Using AngularJS With Eclipse

2016-03-30 Thread Amol Gupta
Thanks for the reply Sander. But if want to deploy my application in a App Server like Tomcat or JBOSS, how should i do that. On Thursday, March 31, 2016 at 12:16:16 PM UTC+8, Sander Elias wrote: > > Hi Amol, > > Angular is used in the frontend. There are almost no developers that use > eclipse

[AngularJS] How to create multiple click events for a single image

2016-03-30 Thread Himanshi Allahabadi
Hi! I'm new to angularjs as well as css and html. I wanted to know how I can create multiple click events for the same image, on different parts of the image. Can anyone help? Thanks in advance :) -- You received this message because you are subscribed to the Google Groups "AngularJS" group. T

[AngularJS] Re: Loading page issue

2016-03-30 Thread pawi . mgr
Hi Vaishali Tekale, Thanks for reply. But when i am using in mozilla it shows following Error *-1null* When i removed my initialize code at time of loading then it works fine. How could I call my initializing code at time of page loading? -- You received this message because you ar

[AngularJS] Parsing a Json object form a PHP server.

2016-03-30 Thread Bishal Paul
My server takes 2 parameter username and password to a page login.php and returns the JSON object if the user is authenticated "{ authenticated : true }", how do I send the get request and how do get the parsed JSON oject... Can Some one provide the php code only for preparing the JSON object

[AngularJS] Re: !angular.isDefined(someValue) is this valid

2016-03-30 Thread Sander Elias
Hi Harila..., Well, it will tell you for certain the value is null or undefined. Empty values are also accepted. (note, this does not tell you what empty is...) Best thing you can do yourself if you need something like this is test it yourself, including the type and not-empty perimeter you nee

[AngularJS] Re: LoginForm Using AngularJS With Eclipse

2016-03-30 Thread Sander Elias
Hi Amol, Angular is used in the frontend. There are almost no developers that use eclipse to build angular apps, hence the lack of eclipse specific material. However, as you are also building for the frontend, you can use any sample that is available. You don't need anything more from eclipse as

[AngularJS] Re: [AngularJS, FB API] Number of likes

2016-03-30 Thread Sander Elias
Hi HardPDK, Well, you might need to load the FB scripts before using the FB api. 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..

[AngularJS] Re: How to do a function call with ng-if or is it not possible?

2016-03-30 Thread Sander Elias
Hi James, Your direct problem is solved my Emmanuel The reason is that ngIf expects an expression . the {{}} does evaluate an expression. As you can not nest expressions, that is the reason it didn't work. As for best practices, No, most of this i

[AngularJS] LoginForm Using AngularJS With Eclipse

2016-03-30 Thread Amol Gupta
Hi, I am new to AngularJS, I have tried searching a lot for tutorials to create a simple web application using AngularJS in Eclipse Mars. I am not able to find anything in how to configure and start the project. I want to create a login Form using AngularJS which can register new users and sto

[AngularJS] Re: Why Angularjs called framework and instead of JavaScript library?

2016-03-30 Thread Proto
It's not a stupid question at all, it's a very good question! I also love this response from Stack Overflow and I keep it book marked for occassions like this: https://stackoverflow.com/questions/3057526/framework-vs-toolkit-vs-library On Wednesday, March 30, 2016 at 5:09:37 AM UTC-7, Bob wrot

[AngularJS] Angular2 remove/adding components

2016-03-30 Thread Nicolas LARATTE
Hi ! I begining to learn Angular2. I have succeeded to add a component on the fly. This component it's a popup which is used to login. I have a button close. When i clicking on it I succeed to close my login compnent. For to do this I use this code: (window)._components.forEach(function(compo)

[AngularJS] [AngularJS, FB API] Number of likes

2016-03-30 Thread HardPDK
Hello, I've got a problem related with a connection with FB api. I wrote it: http://plnkr.co/edit/i5eBj1AIAoMHXyayGMqI and I have no idea why it doesn't works (the secend function in script.js). Any ideas? -- You received this message because you are subscribed to the Google Groups "AngularJS"

Re: [AngularJS] How to do a function call with ng-if or is it not possible?

2016-03-30 Thread Tito
not so much as best practice. also depends on your view engine also : html (although no html engine), .ejs, .jade etc. html {} ejs <%=%> jade I cant remember On Wednesday, March 30, 2016 at 2:11:11 PM UTC-7, James Drinkard wrote: > > > That worked, thanks! So is this acceptable as a best practic

Re: [AngularJS] How to do a function call with ng-if or is it not possible?

2016-03-30 Thread James Drinkard
That worked, thanks! So is this acceptable as a best practice or is there a better way to do this? James -- 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

Re: [AngularJS] How to do a function call with ng-if or is it not possible?

2016-03-30 Thread Emmanuel DEMEY
Hi You should remove these {{ }} from your expression. Manu Le mer. 30 mars 2016 22:38, James Drinkard a écrit : > I'm new to angular 1x and I have some complicated display business logic > using multiple and nested ng-if statements that I had put into my web page, > just to get it working. I

[AngularJS] How to do a function call with ng-if or is it not possible?

2016-03-30 Thread James Drinkard
I'm new to angular 1x and I have some complicated display business logic using multiple and nested ng-if statements that I had put into my web page, just to get it working. It didn't pass the code review and the suggested refactoring was to call a service to handle this. I created the service

Re: [AngularJS] Why Angularjs called framework and instead of JavaScript library?

2016-03-30 Thread Martin Wawrusch
A library provides functionality, a framework provides structure. You write your code "the Angular way". On Wednesday, March 30, 2016 at 5:49:32 AM UTC-7, András Csányi wrote: > > Hi, > > I think the fact Angular provides you MV* framework capabilities with > routing and everything is enough

Re: [AngularJS] I have a select list but the first item is blank how do I get past this

2016-03-30 Thread Pablo Madalena Targa
http://codepen.io/huggaf/pen/XdaPba/ There are 2 attributes on the user... one is set with 'yes' the other with undefined, note that the one with undefined the combo have a blank value the other has the 'default' value selected -- You received this message because you are subscribed to the Googl

Re: [AngularJS] Why is my if statement getting hit with this logic?

2016-03-30 Thread harilall2012
dammit I thought it would be evaluated in this way first condition and second then first condition and third will change it explicitly thanks Pablo -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving e

Re: [AngularJS] I have a select list but the first item is blank how do I get past this

2016-03-30 Thread harilall2012
details please -- 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.

[AngularJS] Re: Two modules on the same page

2016-03-30 Thread mr . sean . boyce
Awesome, Thanks Tito. I didn't mean to take it down a different path like that. Bringing it back to how to format the angular setup on the front end. Would you recommend two separate angular modules (companies, contacts) and a service to share data? What data would I be sharing? Am I look

Re: [AngularJS] Why is my if statement getting hit with this logic?

2016-03-30 Thread Pablo Madalena Targa
the last condition can be bypassing the first two... false && true || true => true On Wed, Mar 30, 2016 at 6:27 PM, wrote: > Guys, I have an if statement that keeps getting hit yet the logic is > correct for it to pass right over it, heres the code > > ($scope.returningMember = "no"; > if($scope

Re: [AngularJS] I have a select list but the first item is blank how do I get past this

2016-03-30 Thread Pablo Madalena Targa
Hi... your model has a blank value, just set a 'yes' or 'no' ;) On Wed, Mar 30, 2016 at 4:34 PM, wrote: > Hi, > > I have a select list where i use ng-repeat to create the options from an > array, my array is simple all I have is this ["yes", "no] but when I click > on the option list the first

Re: [AngularJS] $scope.$watch() Not Working

2016-03-30 Thread Pablo Madalena Targa
Hi Harila, Actually is extremely inadvisable, is simple, quick but ugly as fuck, you start putting everything inside the $rootScope and you lost control, for sure Sander can explain more about the disvantages, I'm too limited... I really recommend using services... I know that is kinda scary when

[AngularJS] Why is my if statement getting hit with this logic?

2016-03-30 Thread harilall2012
Guys, I have an if statement that keeps getting hit yet the logic is correct for it to pass right over it, heres the code ($scope.returningMember = "no"; if($scope.returningMember === "yes" && angular.isUndefined(member.amount) || angular.isUndefined(member.gender)) { //my code in here gets exec

[AngularJS] !angular.isDefined(someValue) is this valid

2016-03-30 Thread harilall2012
I would like to know if this syntax is correct !angular.isDefined(someValue) to use this angular method to check if some value in not null or empty -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving

[AngularJS] I have a select list but the first item is blank how do I get past this

2016-03-30 Thread harilall2012
Hi, I have a select list where i use ng-repeat to create the options from an array, my array is simple all I have is this ["yes", "no] but when I click on the option list the first time there is a blank option. I know that can manually put in an option like this Select a value but I don't want

[AngularJS] Angular2: lite-server, webpack-dev-server, nodemon

2016-03-30 Thread Willem Salembier
Hi, I'd like to know which dev server is preferred to start angular2 applications? The angular git repos currently contain three different approaches - lite-server - webpack-dev-server - webpack + nodemon Which server is more complete/performant? Are there any advantages/drawbacks? I see lit

Re: [AngularJS] $scope.$watch() Not Working

2016-03-30 Thread harilall2012
Thanks Sander On Tuesday, March 29, 2016 at 12:32:17 PM UTC+2, Sander Elias wrote: > > Hi Pablo, Harila..., > > Pablo, your advice to move it to a service is a spot on. The events might > be a bit overkill, if you just want to monitor the length of an array. > > Something like this will work: > >

Re: [AngularJS] $scope.$watch() Not Working

2016-03-30 Thread harilall2012
Hi Pablo, excellent advice, upon closer inspection I notice that my controllers aren't nested at all. I see now that your recommended way of using a service is the best however I am still getting used to angular and what I did was declare the variable on the rootscope so that all my scopes coul

Re: [AngularJS] Why Angularjs called framework and instead of JavaScript library?

2016-03-30 Thread András Csányi
Hi, I think the fact Angular provides you MV* framework capabilities with routing and everything is enough to have the framework word. As far as I know jQuery deals only UI stuff, not MV* stuff. - - -- Csanyi Andras (Sayusi Ando) -- http://sayusi.hu -- http://facebook.com/andras.csanyi -- "

[AngularJS] Why Angularjs called framework and instead of JavaScript library?

2016-03-30 Thread Bob
Hi Here my doubt is Angularjs called as framework and jquery called as library. What is the difference between these two. What are the scenario to call a library as framework. Both Angularjs and jquery we need to include a javascript file or files. I know this is stupid question. But I'm real

[AngularJS] Re: How to get the sum of values based on group in angular JS

2016-03-30 Thread Sander Elias
Hi .., nothing angular related in this. Do something like this: var result = marks.reduce(function (result, mark) { result[mark.GroupId] = result[mark.GroupId] || 0; //set default value to 0 result[mark.GroupId] += (parseInt(mark.Weightage) + parseInt(mark.Deduction))) //sum relevant fi

[AngularJS] Extending angular2 component decorator

2016-03-30 Thread Luigi Clemente
With angular 2.0.0-beta.8 I've created a couple of custom decorator that extends the @Component decorator. To make that I've used this code: import {..., View } from 'angular2/core'; export var MyCustomComponent:ComponentFactory = makeDecorator(MyCustomComponentMetadata, (fn:any) => fn.View

[AngularJS] How to get the sum of values based on group in angular JS

2016-03-30 Thread oc
I have on angular js which will deals with an object . That object have one property called "GroupID" each group have different items(marks). I want to get the sum of marks based on the group.will it be possible in angular js? scenario group 1 1 2 3 group 2 4 2 3 group 3 4 5 7 I have