[AngularJS] How to assign a 2-way binding variable to the body tag in angular2

2016-10-03 Thread Navaneetha Krishnan S
I wanted to have a 2-way binding variable declared in the body tag i.e. the name of the variable wanted to be declared is "menuToggle" (please refer the index.html in the plunker). I wanted to have some button in the App.component which would get clicked and toggle the class in the variable

[AngularJS] Angularjs Design Question - html files versus ng-template

2016-10-03 Thread Ed Thompson
I have about 30 html files in my Angularjs 1.x app. For my production build, I am trying to decide if I should keep them separate files, or if I should combine them into a single file at build time as a single file with multiple

Re: [AngularJS] Angular 2 guide: Class binding (Question)

2016-10-03 Thread Pawel Kozlowski
Hi, "class" and couple of other attributes are special-cased in the compiler to improve user ergonomics. You can find the complete list of special cases here:

[AngularJS] ngFor on Array of objects not updating DOM elements properly

2016-10-03 Thread SLV SNZ
*After I updated my angular 2 project from RC4 to 2.0.1 I'm having a problem with a ngFor looping on an array of objects* (It was working fine on RC4) the list of elements is not being updated properly on the DOM, and now displayed unsorted . the ngFor uses a pipe to slice the array (using

[AngularJS] Angular 2 guide: Class binding (Question)

2016-10-03 Thread Jónatan Núñez
Hi, I was reading the angular 2 guide and I have a question with class binding https://angular.io/docs/ts/latest/guide/template-syntax.html#!#class-binding Bad curly Why we can bind the attribute "class"? The guide tell us that we can bind the DOM properties, but not the HTML attributes:

[AngularJS] Re: Bootstrap doesn't working with angular2 components

2016-10-03 Thread Sander Elias
Hi Luis, It depends on how and wich tools you are using to build your app. If you using the CLI, that does not pull in CSS and stuff from node_modules by itself! Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe

[AngularJS] Re: Correct way of implementing db data retrieving

2016-10-03 Thread Sander Elias
Hi Luke, I prefer HAPI over express, but there are already solutions for both REST as well graphQL available to both. Yes, graphQL is safe for in the browser. (as far as safe goes inside a browser) You have to google around, and read in a bit on each solution to see what's the best solution

[AngularJS] ngFor on Array of objects not updating DOM elements properly

2016-10-03 Thread SLV SNZ
*After I updated my angular 2 projet from RC4 to 2.0.1 I'm having a problem with a ngFor looping on an array of objects* (It was working fine on RC4) the list of sorted objects isnot being updated properly on the DOM, they seem unsorted. *Steps to reproduce the bug /issue:* here is the

[AngularJS] Re: Bootstrap doesn't working with angular2 components

2016-10-03 Thread Luís Augusto de Godoy
Hello sander is as you put it, in my previous message I copied and pasted it, I think that's why we have all extraneous spaces. I tested was copy the css file to a folder within the app directory, there work, now do not understand why the folder within the node_modules does not work. thanks

[AngularJS] Re: Slow rendering of an *ngFor list view

2016-10-03 Thread Birowsky
Sorry, i'm not at liberty to share the code. I don't mind doing a screen share if you are up for it tho. skype: b1rowsky -- 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

[AngularJS] Re: Slow rendering of an *ngFor list view

2016-10-03 Thread Sander Elias
Hi Birowsky, Can You get me some example code/project that show's this behaviour? As I'm not a codementor, I can't get to your project in there. If I can't solve this for you, I will put it to the core-team. This is something that needs to be dealt with. Regards Sander -- You received this

[AngularJS] Re: Correct way of implementing db data retrieving

2016-10-03 Thread Luke
Great! I'm definitely going to explore graphQL features - is it safe to work with it on client-side ? And regarding Express.js server-side API - can you point me in a direction that works well with angular2 when it comes to authorization(user login interface api) and safe work with data in

[AngularJS] Re: Correct way of implementing db data retrieving

2016-10-03 Thread Sander Elias
Hi Luke, The usual way is to create an API server, that sits in between your frontend and your database (in your case Mongo). The goal of the API server is to make sure that there is no unauthorised access to the DB. While it is possible to connect you DB directly to the internet, this is very

[AngularJS] Correct way of implementing db data retrieving

2016-10-03 Thread Luke
Hi, I'd like to retrieve data from MongoDB. Anywhere I search for something like this, I see an application divided into two parts - Client(angular2) and API(Express.js). Is this the only approach to this? My idea is to create a service, in which I connect to database using Mongoose -

[AngularJS] Re: Exporting convention explicit vs implicit

2016-10-03 Thread Sander Elias
Hi Tom, If you export things explicitly, it's very hard to accidentally expose a thing that should have been private. I think that's about it. Things like that become very important if you are creating a public facing framework/library. It's of less importance if its inside a private project.

[AngularJS] Re: Connecting Chart using Angular JS to DB

2016-10-03 Thread Sander Elias
Hi Srinivas, Have a look at $http , that is used to query your server and fetch data. Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop

[AngularJS] Re: error 404 bootstrap with angular 2 final release

2016-10-03 Thread Sander Elias
Hi Guto, I download my version from the CDN, so that's a bit different. However, in your sample are a lot of spaces that are not supposed to be there, so perhaps it's a cut error? Probably that will help, If not, just ask. Regards Sander -- You received this message because you are

[AngularJS] Re: Bootstrap doesn't working with angular2 components

2016-10-03 Thread Sander Elias
Hi Navaneetha, All I can say is that it's working for me. However, I'm not using the bootstrap JS at all, I'm using ngBootstrap2 I took a quick peek at your GitHub repo, but I'm unfamiliar with the way you built your app, so I can't find head nor tails in it.