[AngularJS] How to create a new page every time a new barcode is scanned in (2)

2017-06-12 Thread Micheal B
I am working on a web app (Angular2 front end, Laravel Lumen back end) that will be used by a paint shop to display information for different orders. A painter will scan multiple bar codes and for each bar code scanned a new page needs to be created (or added to a queue of some sort) with new

[AngularJS] Re: How to use data from controller in directive

2017-06-12 Thread Tito
I tried more tweaks without using $onInit and I notice the following when doing console.log('Directive Controller vm', scope.vmd); Why cant I access virtStats or how can I access that. I tried all kinds of things. On Saturday, June 10, 2017 at 9:11:01 AM UTC-7, Tito wrote: > > Ok I will try

[AngularJS] AngularJS Component Compilation Performance

2017-06-12 Thread Gary Justin
Looking for advice: A dev team I work closely with has been using components pretty liberally to encapsulate functionality and templates. In general, these components are small, and do pretty simple things in their controllers. From a code organization and encapsulation perspective, this is

[AngularJS] Position element seems confusing or buggy on angular2 material modal please help me on how to position modal on top not in middle of page

2017-06-12 Thread beastar 457
this.dialog.open(Upload, { height: '400px', width: '600px', position:'margin-top:-45px;', }); -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email

[AngularJS] Angular usage research

2017-06-12 Thread Sérgio Santos
Hi guys, I'm curious on how Angular is being used in terms of versions/languages so I'll try to gather some data in the Angular community. To do so I've prepared a small questionnaire (one minute) with some high level questions about the usage of Angular, and I'm asking you to

[AngularJS] Re: How to use data from controller in directive

2017-06-12 Thread Tito
This is so odd. without adding $onInit. I do the following console.log('Directive Controller vm', scope.vm); 1. and I see this! I want that virtStats, but I cant access it via scope.vm.virtStats. This is weird. I am sure this is basic javascript issue not angular 2. Dashboard

[AngularJS] Re: AngularJS Component Compilation Performance

2017-06-12 Thread Sander Elias
Hi Gary, Don't worry. Switch over to AOT compilation. That will be done during build time, not in the browser. Added virtue, your application becomes safer (and smaller), as there is no compiler in your runtime anymore. Regards Sander

[AngularJS] AngularJs Filter hide options if no products

2017-06-12 Thread nat . meyer . est
https://stackoverflow.com/questions/44489527/angularjs-filter-hide-options-if-no-products -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[AngularJS] Need to upload a file in angular using php

2017-06-12 Thread SAURABH CHADHA
My angular ts code - fileChange(event) { // let fileList: FileList = event.target.files; let fileList: FileList = event.srcElement.files; if(fileList.length > 0) { let file: File = fileList[0]; let formData:FormData = new FormData(); formData.append('uploadFile',

[AngularJS] Make a scrollbar using angular 2

2017-06-12 Thread Makrand Sethi
Hi, I was thinking of creating a scrollbar component using angular 2. I have a few queries : 1.Is that is it advisable making my own custom scrollbar or not ? 2. In case I decide to make one. I was wondering that for every mouse scroll, angular's change detection will be fired so, is it

[AngularJS] Re: Make a scrollbar using angular 2

2017-06-12 Thread Sander Elias
Hi Makrand, 1. No. 2. Doesn't have to be the case, that's depending on how you choose to program it. 3. See 2, but you might want to update on every (debounced) change, depending on your app. Regards Sander -- You received this message because you are subscribed to the

[AngularJS] Re: How to inclcude css files in a angular project correctly?

2017-06-12 Thread Sander Elias
Hi Niklas, See this cli wiki page , probably your answer is in there! Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from

[AngularJS] Re: How to use data from controller in directive

2017-06-12 Thread Sander Elias
Hi Tito, There is your answer al along. However, you still shouldn't be using $scope . In this case, that would have saved you hours. Using components helps.

[AngularJS] Re: How to use data from controller in directive

2017-06-12 Thread Tito
I notice this On Friday, June 9, 2017 at 8:25:14 PM UTC-7, Sander Elias wrote: > > Hi Tito, > > Do this in your dashboard controller. Don't use the link