[AngularJS] Re: Angular1 - Paid Tech Support

2015-12-23 Thread Sujith Surendran
Hi Kapil, Hope below URL helps you for Angular 1x. https://github.com/johnpapa/angular-styleguide On Wednesday, December 23, 2015 at 11:45:45 AM UTC+5:30, Kapil Khanna wrote: > > Hi, > > My team is learning AngularJS v.1 on the fly in a live project and needs > professional help with coding iss

[AngularJS] Re: Dependency Injection Cannot resolve all parameters for component

2015-12-23 Thread maxraocam
thank you On Monday, 21 December 2015 22:17:04 UTC+5:30, Adam Hitchens wrote: > > Hello, > > I had all my dependency injection working in Alpha 45, but now when I try > and do the same thing in beta 0, I am getting "*EXCEPTION: Cannot resolve > all parameters for AppComponent(?, ?). Make sure t

[AngularJS] how to use the controllerAs in the factory model?

2015-12-23 Thread Chernsha Wang
Anyone know how to use the controllerAs in the factory model? Can you please provide me with a few examples? thks -- 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

[AngularJS] Re: Angular 1.x to Angular 2.0 beta

2015-12-23 Thread Kumar Ranjan
Thanks a lot Sander. On Wednesday, 23 December 2015 19:52:26 UTC+5:30, Kumar Ranjan wrote: > > Wanted to convert following service to Angular 2 Service. I am using > google api here. The main problem I am getting is to returning the Promise > as its not similar as Angular 1.x. > > getLoginStatus

[AngularJS] Re: Angular 1.x to Angular 2.0 beta

2015-12-23 Thread Kumar Ranjan
Thanks a lot On Wednesday, 23 December 2015 19:52:26 UTC+5:30, Kumar Ranjan wrote: > > Wanted to convert following service to Angular 2 Service. I am using > google api here. The main problem I am getting is to returning the Promise > as its not similar as Angular 1.x. > > getLoginStatus: funct

[AngularJS] Using relative Templates in Angular 2 Beta 0 with moduleId: module.id

2015-12-23 Thread Manfred Steyer
Hi, Angular 2 is said to support templates and stylesheets that are referenced from a component with a *relative* path. For this, we have to set *moduleId: module.id* within the component-decorator. This demands compiling for commonjs. Now, I', wondering, how to bootstrap a Angular 2 app that

[AngularJS] Angular 2 and Rails 5, asset pipeline or no?

2015-12-23 Thread Amrit Kahlon
What is the best way to set up a project using angular 2 and rails 5? I was using it with angular 1.5 and typescript before, and had the asset pipeline setup with the typescript rails gem. It all seemed to work fine. Now I'm not quite sure how this systemjs works, or how to use angular 2 witho

[AngularJS] Re: Dynamically add Component with Angular 2

2015-12-23 Thread Manfred Steyer
Hi Daniel, thanks for your answer. That is the solution, I used, but in this case, I'm only able to pass some data to properties of the component. I'm wondering, if there is a way, to set up a "real" property-binding. Currently, I see two workaround for doing this: 1. Use Life-Cycle-Hooks to p

[AngularJS] Re: Angular 2: Global Hooks/ Events for Component Router

2015-12-23 Thread Manfred Steyer
Hi, thank you both for you opinions. Thanks to Sanders, I see now, that the global event isn't absolutly neccessary, but I also feel like Martin. We are talking about cross-cutting-concerns here. Devs see for years, that it isn't the best idea, to put such concerns into every piece of code. Th

[AngularJS] AngularJS2 dynamically loading a template

2015-12-23 Thread Cody Robinson
I started doing some research into using AngularJS2 and one of the questions I had that I can't find a solution for. I have a requirement that depending on the data I receive from my model, I wish to load different templates for a given component. This is mainly related to maintaining differe

[AngularJS] Re: Angular 1.x to Angular 2.0 beta

2015-12-23 Thread Sander Elias
Hi Kumar, Something like this would do: getLoginStatus: function () { return new Promise((resolve,reject) => gapi.auth.authorize({ client_id: dataStore.getData('CLIENT_ID'), scope: dataStore.getData('SCOPES'), immediate: true }, resolve)); } Regards Sander -- You received this message be

[AngularJS] Angular 1.x to Angular 2.0 beta

2015-12-23 Thread Kumar Ranjan
Wanted to convert following service to Angular 2 Service. I am using google api here. The main problem I am getting is to returning the Promise as its not similar as Angular 1.x. getLoginStatus: function () { var deferred = $q.defer(); gapi.auth.authorize({client_id: dataStore.getDat

[AngularJS] Re: How To Define Functionality

2015-12-23 Thread Robert Zehnder
Angular is built with javascript, so you are pretty much free to use any javascript functions. Angular does have wrappers for some functions ($interval and $timeout 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 qu

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

2015-12-23 Thread Robert Zehnder
Have you looked into the date filter? It sounds like it may 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 > current da

[AngularJS] Want to recall ng-repeat on div click

2015-12-23 Thread Satish Pabla
Hello, I am a newbie to angularJS. Please help me sort out an issue I am facing from last 3 days. I am using AngualrJS and Highcharts in my application. Here is the scenario: I have two divs in HTML(JSP). div1 displays a table which is a plain HTML. div2 displays data through angualJS template

Re: [AngularJS] Angular2 Interface naming convention

2015-12-23 Thread András Csányi
In my opinion, you are right. - - -- Csanyi Andras (Sayusi Ando) -- http://sayusi.hu -- http://facebook.com/andras.csanyi -- ""Trust in God and keep your gunpowder dry!" - Cromwell On 23 December 2015 at 13:11, Matthew Paul wrote: > I don't like the naming convention used for this interface

[AngularJS] Angular2 Interface naming convention

2015-12-23 Thread Matthew Paul
I don't like the naming convention used for this interface in angular2 (not sure if this is generally the convention): "export class MyComponent *implements OnInit*" I think if an interface has been defined for the purpose of a class to implement it should be prefixed with an 'I' like you would

[AngularJS] Re: are modules a thing in angular even for dart?

2015-12-23 Thread Günter Zöchbauer
In the doc you linked to > Some modules are libraries of other modules. > Angular itself ships as a collection of library modules called "barrels". Each Angular library is actually a public facade over several logically related private modules. An angular module is pretty much the same as a Dart

[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