Re: [AngularJS] [Angular2] const Objects, e.g. Hero.DR_EVIL

2016-08-05 Thread 'Lucas Lacroix' via AngularJS
​My guess would be that the constant has not been imported where you are using it. Where are you trying to use the constant? In a template, maybe? One ​other thing, unrelated to your issue, is you have defined Hero as a class but you initialize the constant as a generic object. You should add a

[AngularJS] [Angular2] const Objects, e.g. Hero.DR_EVIL

2016-08-05 Thread andreas . fagschlunger
Hi! This may be a more TypeScript related question but you may still help me. What I try to do is to access a Object statically. As an example, a fixed list of heroes: export const DR_EVIL: Hero = {id: 666, name: 'Dr. Evil'}; export class Hero { id: number; name. string; } But although

Re: [AngularJS] Controller not displaying the view

2016-08-05 Thread András Csányi
Hi, Try to use this: {{$scope.author.name}} {{ $scope.author.title + ', ' + $scope.author.company }} - - -- Csanyi Andras (Sayusi Ando) -- http://sayusi.hu -- http://facebook.com/andras.csanyi -- ""Trust in God and keep your gunpowder dry!" - Cromwell On 5 August 2016 at 14:40, Godwin

[AngularJS] Controller not displaying the view

2016-08-05 Thread Godwin Festus
Hi all, i just started learning angular js and must say its quit interesting. I recently encountered a problem in with my learning because the output am expecting from my code is not been displayed, rather my code is displaying {{author.name}} {{author.title +', ' +

[AngularJS] Re: ngFor with binded Input (primitive array) not updating properly

2016-08-05 Thread SLV SNZ
Le vendredi 5 août 2016 11:14:06 UTC+2, SLV SNZ a écrit : > > plnkr.co > > > > In app.ts I load a big array, (notice the

[AngularJS] ngFor with binded Input (primitive array) not updating properly

2016-08-05 Thread SLV SNZ
plnkr.co In app.ts I load a big array, (notice the array ends with "X","Y","Z" elements). I display the primite array in *show.ts* . array is an @Input . The array has a selection range (@Input

[AngularJS] AngularJS define ng-model for input by two json

2016-08-05 Thread Petr Domkař
Hi I have question how can I defube ng-model for input. I have dynymicly created (in init function) json structure similar this { name: "Jack", surname: "Jack", addr: {city: "", code: 456, anotherData: {abc: "adf", abcde: "ggdf"}}} In Template I made by ng-repeat and ng-include form and i