Re: [AngularJS] $location.path('homePage'); Does not update the relevanr view

2016-01-11 Thread ShatterStar
Hi, yes it is and I have tried what you have suggested the url changes just the relevant view isn't updated and this only happens with this view On Monday, January 11, 2016 at 5:36:43 PM UTC+2, Leandro Parazito wrote: > > Is that path configured in $routeProvider? If you are just trying to go to

[AngularJS] $location.path('homePage'); Does not update the relevanr view

2016-01-11 Thread ShatterStar
As per the title I have a ng-click function with only this line of code $location.path('homePage'); but the relevant view isn't updated I have even tried the replace at the end of that and even that didn't work -- You received this message because you are subscribed to the Google Groups "Angul

[AngularJS] Trying To Push Data To Empty Array

2015-12-29 Thread ShatterStar
I have an empty array declared and upon a button press a function is kicked off to push the items into that particular array index, only problem is my index is not incrementing, what am I doing wrong? Here's my code $scope.incomeList = []; $scope.addIncome = function(incomeItem){ if(angul

[AngularJS] Re: which is good way to store global static data?

2015-12-29 Thread ShatterStar
I think declare it as a constant on your parent controller On Tuesday, December 29, 2015 at 11:46:51 AM UTC+2, Ankush Joshi wrote: > > Hello, > > Here i need to store static data in one variable, which should not change > across the pages, such variable should only reset on close of browser, > s

[AngularJS] Re: how to refer data from one controller to other?

2015-12-29 Thread ShatterStar
Hi, based on controller inheritance you something like this So TestCtrl1 would be your parent controller and any variables declared within that controller can be accessed by the child controller TestCtrl2. On Tuesday, December 29, 2015 at 11:44:05 AM UTC+2, Ankush Joshi wrote: > >

Re: [AngularJS] How To Remove Items From A List

2015-12-28 Thread ShatterStar
ow. > > http://stackoverflow.com/questions/14250642/angularjs-how-to-remove-an-item-from-scope > > 2015-12-28 23:32 GMT+09:00 ShatterStar >: > >> I have a list with a delete button that is attached to each item like this >> >> >> >> Date >>

Re: [AngularJS] How To Remove Items From A List

2015-12-28 Thread ShatterStar
250642/angularjs-how-to-remove-an-item-from-scope > > 2015-12-28 23:32 GMT+09:00 ShatterStar >: > >> I have a list with a delete button that is attached to each item like this >> >> >> >> Date >> Detail >> Amount >> >>

[AngularJS] How To Remove Items From A List

2015-12-28 Thread ShatterStar
I have a list with a delete button that is attached to each item like this Date Detail Amount {{item.date}} {{item.detail}} {{item.amount}} Edit Delete upon clicking the delete button I want that particular item in the object that I have declared to be removed / deleted, here

[AngularJS] My Object Is Declared As An Array But Can't Use The Push Function

2015-12-27 Thread ShatterStar
I have an array declared like so $scope.list = [ { date: "2015-01-01", detail: "Bought new wallet", amount: $filter('number' )(150.00 , 2) }, { date: "2015-01-08", detail: "Bought shoes", amount: $filter('number')( 225.36 , 2) }, { date: "2015-01-12", detail: "Bought shirt", amount: $filter('n

[AngularJS] Trying To Validate Number Input With Decimal Places

2015-12-24 Thread ShatterStar
Hi Guys, I am trying to validate the number input that I have the user must enter a digit with a value greater than 0, this works initially but the moment the user enters the dot for decimal part of the amount the error message that I have on ng-show is shown eg "36.95" the moment the dot is en

[AngularJS] Re: Can't Get The Pristine Class Right

2015-12-24 Thread ShatterStar
I managed to get this right it was just a matter of chaining the correct classes together in the css, the classes I used were ng-touched and ng-valid / ng-invalid On Thursday, December 24, 2015 at 12:01:33 PM UTC+2, ShatterStar wrote: > > Hi Guys, > > I have a form as a view wit

[AngularJS] Can't Get The Pristine Class Right

2015-12-24 Thread ShatterStar
Hi Guys, I have a form as a view with two simple inputs, I have applied the classes ng.invalid and ng-pristine in the css however what I want to achieve is upon the loading / viewing of the form the input fields should have no default styles applied, only after the user has interacted with the

[AngularJS] Re: How To Define Functionality

2015-12-24 Thread ShatterStar
come to mind) > > On Wednesday, December 23, 2015 at 2:58:07 AM UTC-5, ShatterStar wrote: >> >> Thanks Sander but it doesn't answer my question but from what I can see >> the answer is yes correct me if I am wrong >> >> On Wednesday, December 23, 2015 at 7

[AngularJS] Re: How Do I Get The Date In The Format That I Want

2015-12-24 Thread ShatterStar
do what you > need. > > https://docs.angularjs.org/api/ng/filter/date > > > > On Wednesday, December 23, 2015 at 3:00:40 AM UTC-5, ShatterStar wrote: >> >> Hi Guys, >> >> I am trying to get the date that I have as a hidden field to be the >> curren

[AngularJS] How Do I Get The Date In The Format That I Want

2015-12-23 Thread ShatterStar
Hi Guys, I am trying to get the date that I have as a hidden field to be the current date which would include the year, month and day eg. 2015-12-25, this is how I am doing it thus far but is there a better / easier way? Here's the code var newDate = new Date(); dateYear = newDate.getFullYea

[AngularJS] Re: How To Define Functionality

2015-12-22 Thread ShatterStar
Thanks Sander but it doesn't answer my question but from what I can see the answer is yes correct me if I am wrong On Wednesday, December 23, 2015 at 7:30:11 AM UTC+2, Sander Elias wrote: > > Read the documentation? > https://docs.angularjs.org/api/ng/type/$rootScope.Scope > > -- You received

[AngularJS] How To Define Functionality

2015-12-22 Thread ShatterStar
Hi Guys, I would like to know how do I define the functionality on the $scope, I know that AngularJS is a javascript framework so am I correct in saying that all javascript functions can be used in angular as well? Can anyone point me to any good resources where I can learn how to define comple

[AngularJS] Is There A Particular Reason For This Syntax Difference?

2015-12-21 Thread ShatterStar
Hi Guys, In learning AngularJS I have come across different syntaxes when declaring the controller, here they are: .controller("testCtrl", function($scope){ }); and the other syntaax that I have noticed .controller(["testCtrl", function($scope){ }]); Take notice of the angle brackets on the

[AngularJS] Re: results in a maximum call stack size exceeded

2015-12-20 Thread ShatterStar
sorted the problem out with no circular references. On Monday, December 21, 2015 at 6:59:02 AM UTC+2, Sander Elias wrote: > > Hi ShatterStar, > > `` is not valid HTML5. Did you try with ``? > > Self closing tags are not part of HTML5. They are allowed because (sadly) > it is a v

[AngularJS] results in a maximum call stack size exceeded

2015-12-20 Thread ShatterStar
Hi Guys, I have a simple AngularJS app and I have defined different templates through the $routeProvider but upon inserting the into the default html document I get this error in the chrome developer tools "maximum call stack size exceeded", here's my code index.html Angularjs Money App