This is my code… I don’t know how to explain but it always say undefined when I enter something on the text box… but $scope.goaltitle = “something” is working on the .controller(); … Answer Short Answer The root cause of this issue is, ion-content does create a prototypically inherited child scope, that’s why goaltitle(primitive type) of controller scope is different
Tag: angularjs-scope
Javascript – Get Previous Months Date
If i have a variable that returns a date, in the format of dd MMM yyyy, so 28 Aug 2014, how can i get the date of the previous month. I can modify the month via: Essentially, this is adding one to the Month.. But how can i account for years, so if the current date is 12 Dec 2014,