Re: [AngularJS] Re: Not happy angular.io uses cli as default

2017-02-24 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
You can debug in production. You have to include the generated map files. The browsers debugging tools will then show the source code when using the debugger. As for the cli, it automates a set of build steps to produce an optimized application. You could achieve the same effect yourself but you w

Re: [AngularJS] Re: Not happy angular.io uses cli as default

2017-02-26 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
Whoever told you that you cannot debug a production build was incorrect. We debug in production all the time without issue. On Sun, Feb 26, 2017, 06:34 Long Field wrote: > Hi Sander > Let me make this clear, I judge complex or flexible according the task and > tools, not by if I know how to do s

Re: [AngularJS] Image rotates 90 degree in preview

2017-04-14 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
That's not really an Angular issue and would happen for any web application. I would suggest adding a "rotate 90 degrees" option on your preview (not the iPhone or Android's preview, but an element on your actual web-page). Then, when the file is uploaded, you would need to include how much rotati

Re: [AngularJS] Angular not working in Internet Explorer Enterprise Mode 8

2017-06-17 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
I can't say for certain, but I don't believe anything under ie9 will work with many modern frameworks. Earlier browsers just did not have the Javascript and DOM functionality. If you have some console logs, maybe someone can suggest what you could do but I would not get my hopes up. On Sat, Jun 1

Re: [AngularJS] Tree control supporting checkboxes

2017-06-29 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
Try Clarity UI. It has a tree view as well as many other common UI constructs. On Thu, Jun 29, 2017 at 3:54 PM Reza Razavipour wrote: > I have attached a screen shot of what my requirements are for an Angular 2 > or better... > > Anyone knows of one? > > -- > You received this message because yo

Re: [AngularJS] Re: Tree control supporting checkboxes

2017-06-29 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
I haven't had many questions but I do see almost all of them get answered. On Thu, Jun 29, 2017 at 4:37 PM Reza Razavipour wrote: > Looks very promising. > > They are under MIT license which is another requirement of mine > What are you experience with getting your questions answered and general

Re: [AngularJS] With each $_GET and $_POST request OPTION request perform first

2017-06-30 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
That's nothing to do with Angular. Look up "cors" and you will find plenty of documentation on how to reconfigure your server. On Fri, Jun 30, 2017, 08:50 Pankaj Mishra wrote: > Hello There, > > I am using a simple php API > and sending request using Angular for submitting form but from option >

Re: [AngularJS] can't run npm to serve "lite-server

2017-07-05 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
The error, "NOENT", usually indicates a missing file or directory. Are you sure the "src" folder exists? On Wed, Jul 5, 2017, 19:06 Janis Rough wrote: > I have installed lates update of npm. I have done npm run build.I > have enclosed the log. Is it something to do with my export path? se

Re: [AngularJS] Re: auth2 sign-in

2017-07-06 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
Your redirect URI must be the entire thing, ex. "https://example.org/oauth2 ". On Thu, Jul 6, 2017 at 1:29 AM Charles Libicki wrote: > Correction: The error is 400, not 404. > > > On Thursday, July 6, 2017 at 8:17:31 AM UTC+3, Charles Libicki wrote: >> >> I am trying to add a login component to

Re: [AngularJS] Re: switching from System JS to angular CLI

2017-07-06 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
You can use the CLI to start a local server which will automatically recompile and reload the page when the source changes. Just run: "ng serve". On Wed, Jul 5, 2017 at 9:47 PM Reza Razavipour wrote: > and just to test everything, is there a way - a command line tool I can > use? > > Not webpack

Re: [AngularJS] Re: auth2 sign-in

2017-07-06 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
17 at 2:57 PM, 'Lucas Lacroix' via Angular and AngularJS > discussion wrote: > >> Your redirect URI must be the entire thing, ex. " >> https://example.org/oauth2";. >> >> On Thu, Jul 6, 2017 at 1:29 AM Charles Libicki >> wrote: >> >

Re: [AngularJS] Re: auth2 sign-in

2017-07-06 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
ager wants origins only, not sub-directories. > > On Thu, Jul 6, 2017 at 3:34 PM, 'Lucas Lacroix' via Angular and AngularJS > discussion wrote: > >> I do not believe you can use http with Google's oauth implementation. I >> believe it must be https or the req

Re: [AngularJS] Re: can't run npm to serve "lite-server

2017-07-06 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
You need to run npm from the directory where the package.json lives. All paths in your configuration must be relative to that location. Does that make sense? On Thu, Jul 6, 2017, 10:02 Janis Rough wrote: > src is a directory not a file: I tried npm start from one level up where > is the packag

Re: [AngularJS] Re: switching from System JS to angular CLI

2017-07-06 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
Put "ng server" in the "start" command of your package.json. On Thu, Jul 6, 2017 at 11:07 AM Reza Razavipour wrote: > Understood > > I am looking for a non ng command, similar to npm start or npm run lite or > some such tool > > > > On Thursday, July 6, 2017 at 5:00:00 AM UTC-7, Lucas Lacroix wr

Re: [AngularJS] Re: can't run npm to serve "lite-server

2017-07-06 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
Only use sudo with no if you are installing modules globally. What you've done is, potentially, made the node_modules folder inaccessible. According to line 14, you're running "npm start" from your user's directory instead of a project specific folder. That seems very strange. On Thu, Jul 6, 2017

Re: [AngularJS] Cache the page and save rendering time

2017-07-07 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
You can't cache HTML elements, as far as I know. If you have such a large number of customers that it causes a rendering slowdown, you should consider paginating the data. On Fri, Jul 7, 2017, 01:36 Rosh Mohan wrote: > hi all > > Is it possible to cache the whole page in Angular SPA? > > My scen

Re: [AngularJS] Re: can't run npm to serve "lite-server

2017-07-07 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
Alright... That looks like an error coming back from "tsc". I think you may be using "-p" incorrectly. According to the doc, that should be the path to a directory containing a tsconfig.json file. Try removing it from your "build" command and try again. On Fri, Jul 7, 2017 at 2:19 PM Janis Rough

Re: [AngularJS] Angular 4 signle page application embedded inside Another jQuery SPA

2017-08-08 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
There are so many things that can happen in those embedded apps that would break the host app or each other that I would not suggest this approach. One approach that may work is to embed your Angular application into an iFrame. That way, nothing within embedded app(s) or within the host app would

Re: [AngularJS] Re: Basic authentication making Rest Call via Angular 4 API (CORS Issue)

2017-08-23 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
Hi LJ, If you're not in control of the API server, then you will need to proxy the requests through your server in order to work around the CORS issue, as you have done. However, that puts unnecessary strain on your server. The API server should return the appropriate headers so that the browser d

Re: [AngularJS] My angular 4 frontend making http request to express backend and failing on 404

2017-08-23 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
URLs use forward-slash, "/", and not back-slash , "\". So, using your example: http.get('/getmejson') .subscribe((response) => { console.log(response); }); On Wed, Aug 23, 2017 at 4:32 PM LJ wrote: > > Hi > > I have angular front end with basic button click it triggers http ge

Re: [AngularJS] How to pass parameters to an angular application?

2017-08-23 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
I usually do this by having an API hosted on localhost that returns the configuration. On Wed, Aug 23, 2017, 18:25 Reza Razavipour wrote: > I have an application that calls an HTTP server for data. > This is a parameter that will be passed in to my application. > > My application is http://local

Re: [AngularJS] My angular 4 frontend making http request to express backend and failing on 404

2017-08-24 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
It sounds like you are running two different services: one to host your app and one for your APIs. Is that correct? On Thu, Aug 24, 2017, 09:26 LJ wrote: > Do I need to send parameters or headers ( json content type is default) > from front end too? I set those in the backend side ( hard coded f

Re: [AngularJS] Angular 4.3.4 - HTTP 415 Usupported Media Type on POST

2017-08-25 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
You need to set the content type appropriately. It looks like you're sending JSON but leaving the default content type of "text/plain" which your server does not appear to support. On Fri, Aug 25, 2017, 08:31 nicolas duminil < nicolas.dumi...@simplex-software.fr> wrote: > Greetings, > > I have a

Re: [AngularJS] Angular get Request 401 error

2017-08-28 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
This error has nothing to do with your client application at all. This is your API server - it does not return the appropriate CORS related headers that would instruct the browser to allow your request. It looks like you are sending the CORS headers on a GET request, which will not work. The brows

Re: [AngularJS] Electron performance and size

2017-08-29 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
Hi Ranjeet, I suggest you go to Electron's site and look at their doc: https://electron.atom.io/docs/tutorial/application-distribution/ On Tue, Aug 29, 2017 at 5:52 AM Ranjeet Kuruvilla wrote: > Previous frameworks to build standalone Js apps created big executables. > Is electron able to prod

Re: [AngularJS] Open questions about final builds

2017-08-29 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
Hi Ranjeet, *Re #1* "ng build --prod -bh {base URL}", example if you wanted to host this application in the "/app1/" folder would be: "ng build --prod -bh {base URL}" Please note: this is all documented in Angular CLI's documentation *Re #2* Refer to Electron's documentation *Re #3* If you mean t

Re: [AngularJS] Re: Creating components at runtime

2017-08-29 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
That seems like you should just use a "*ngIf" on your components so that only the one you want is displayed. On Tue, Aug 29, 2017 at 11:30 AM Reza Razavipour wrote: > Thanks for the response. > My question must have not been clear. I am not looking for specific open > source components. > > What

Re: [AngularJS] Re: Angular 2 send no CSRF Token (XSRF-TOKEN) in Header

2017-09-13 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
It looks like you're using an extremely old version of angular. It is probably suggested that you upgrade. Beyond that, try to reproduce your issue in a plunker. Otherwise, no one will be able to really tell you what is possibly wrong with your code. On Wed, Sep 13, 2017, 06:45 Alexander Khromov

Re: [AngularJS] Re: Add http header to loadChildren http request

2017-09-27 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
It seems odd that you require authorization in order to access publicly accessible assets. You would run into the same issue using a script tag in your HTML. Can you not remove the header requirement for assets? On Wed, Sep 27, 2017, 13:14 wrote: > Thank you very much for sharing Sander. I use

Re: [AngularJS] Re: Add http header to loadChildren http request

2017-09-27 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
How are users accessing the application in the first place? There is HTML and other assets needed in order to get to the point where Angular is running and able to import components. Why not use the typical WebSession (ie. cookie) based authentication usually used in this situations? On Wed, Sep

Re: [AngularJS] Re: n00b question: concatenating string using 2 way binding

2017-11-07 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
You've bound your input element to the "tickersymbol" variable. Angular will make sure that when the user modifies the input that the member variable on the instance of the component will also be updated. So, here is what you can do: *component.TS* // Note: remove tickersymbolback and tickersymbo

Re: [AngularJS] angular and pdf files

2017-11-09 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
There are two approaches... One: open the PDF link in a new tab/window and make sure to set the Content-Type appropriately. Two: use pdf.js (from Mozilla) to display the PDF in your page. We used pdf.js because it gave us greater control and made the experience consistent across browsers. On Thu

Re: [AngularJS] Repeating a set of pages from parent page - dynamically

2017-11-17 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
Hi LJ, I would include each unique component once and have the parent control which view to use as well as which model to write into. This would allow the parent to control which component is in view and which model that component should write into. This way, the parent could display the same compo

Re: [AngularJS] Determine if AOT or JIT at Runtime

2017-11-17 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
I would suggest changing the maximum level based on whether or not you're compiling for production instead of AOT vs. JIT. The Angular CLI already sets you up with a production and development environment. Here is a good example that explains much: http://tattoocoder.com/angular-cli-using-the-env

Re: [AngularJS] one http call for multiple calls in Angular 4

2018-01-22 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
Hi Dixit, That is 100 percent on your back-end. There is nothing Angular, or any other front-end framework, can do to package up your API calls into a single call. Some back-ends have support for making one request that does multiple things. For instance: our server has a "bundle" API which allows

Re: [AngularJS] Help Converting Ajax call to a put request

2018-02-16 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
Where are you subscribing to the observable? On Fri, Feb 16, 2018, 17:48 James Niesen wrote: > Hi > I'm learning the latest and greatest Angular using type script. I have an > ajax request that works fine in jQuery. I'm trying to convert this to a > post request. Below are the two calls. Doe

Re: [AngularJS] Inserting child nodes in code.

2018-03-23 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
Hi Brian, You need to move the template INTO the kendo-tabstrip element. Something like this: ribbon works! Update ribbon works! Update Though I am confused by our use of ng-template. ng-template does not

Re: [AngularJS] Inserting child nodes in code.

2018-03-25 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
What you're trying might be possible but I've never done it that way nor have a seen any examples of using templates that way. I've always populated an array on the component dynamically or used observables. On Fri, Mar 23, 2018, 19:18 Brian Wilkinson wrote: > Hi Lucas the idea of defining the t

Re: [AngularJS] ng-repeat doesn't read SQL json file results

2018-05-26 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
It looks like you're using the mysqli php library to connect to an mssql database. Trying debugging your php script by invoking it directly in the browser. On Sat, May 26, 2018, 19:29 Andrej Batarilo wrote: > *Hello, so I prettty much copied this code and it doesn't work for me, but > does for o

Re: [AngularJS] Big number is showing exponential value after upload to CSV using Angular2Csv library

2018-08-08 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
I just want to say: This is not an issue with Angular but a limitation of Javascript. Javascript uses double floating point numbers internally which means you're limited to that formats precision for integer: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MA

Re: [AngularJS] Storing Screen Layout in Database

2018-09-07 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
Dynamic forms are possible in Angular 6 (I would assume also in Angular 1, but I've never used that). You need to use FormGroup, FormArray, and FormControl to build the structure that Angular will store the user's input in and then use *ngSwitch/ngIf and ngFor to generate the display from the list

Re: [AngularJS] Angular + Webpack: Upgrade compiler target from es5

2018-09-09 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
The error is simple... Before es5, there were no classes and using "new" was just syntactic sugar and you could, instead, just call the function. After, you can define a class using the "class" keyword (like in other languages) and you can no longer treat it like a function. So, the error indicate

Re: [AngularJS] How can I validate email and phone number in one textbox (Angular2+)

2018-09-11 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
Start here: https://angular.io/guide/form-validation On Tue, Sep 11, 2018 at 7:52 AM wrote: > Could you help me to validate email or phone number within one text box > > -- > You received this message because you are subscribed to the Google Groups > "Angular and AngularJS discussion" group. >

Re: [AngularJS] Re: how to get url paramter value in angular js

2018-09-16 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
You will want to do your string splitting BEFORE you use decodeURIComponent. Otherwise, if the values contain "&" or "=", you will get exceptions or bad data. On Sun, Sep 16, 2018, 07:55 jaffer sadiq wrote: > Hi everyone. > > I done with the script. added my script as well > > var getUrlParamete

Re: [AngularJS] Re: Angular subscribe() multiple times and memory leaks

2018-09-22 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
What happens when you subscribe varies from observable to observable. If you subscribe programmatically, then you need to unsubscribe, otherwise you will have a memory leak. If you use Angular's async pipe, that's handled for you. On Sat, Sep 22, 2018, 14:20 Ilia Ternovich wrote: > Thanks for t

Re: [AngularJS] What is the URL when Header is added

2018-10-15 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
Nothing changes in the URL when you add headers. They are completely separate. I suggest you check the logs on your server or the developer tools in your browser. Either of those may point to your issue On Mon, Oct 15, 2018, 22:01 Partha Majumdar wrote: > Dear Sir/Madam, > > I had a working Ang

Re: [AngularJS] WARNING in budgets, maximum exceeded for initial. Budget 2.1 MB was exceeded by 1.47 MB.

2018-10-30 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
It's a warning, not an error. You can either ignore it, or set a new budget. This article goes over the details: https://medium.com/dailyjs/how-did-angular-cli-budgets-save-my-day-and-how-they-can-save-yours-300d534aae7a On Tue, Oct 30, 2018 at 8:42 AM Partha Majumdar wrote: > Dear Sir/Madam, >

Re: [AngularJS] Backend for angular using oracle.

2018-11-24 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
Hi Katgeeja, You will need to implement an API server in order for your web application to talk to your database. This is completely separate from Angular. There are many solutions out there for creating APIs and I can't recommend one over any of the others. We use a NodeJS back end using ExpressJ

Re: [AngularJS] Backend for angular using oracle.

2018-11-24 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
t it into oracle table.I tried this for > user sign up page.The signup details reaches the node js server but then I > don't know the syntax to send that data into database table.Please share > any reference links of you know. > > On Sun, Nov 25, 2018, 2:28 AM 'Lucas Lacroi

Re: [AngularJS] Backend for angular using oracle.

2018-11-24 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
You can use oracle-db. Just reads its documentation. On Sat, Nov 24, 2018, 22:42 Katheeja Beevi wrote: > Hi Sir, > Thanks for suggesting jwt but I have been assigned to do this with > node js and oracle,so I am unable to use jwt. > > On Sun, Nov 25, 2018, 2:30 AM Binh GIIK wrote: > >> Hi K

Re: [AngularJS] Reason for "Undefined"

2018-12-03 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
Your code inside ngOnInit is asynchronous. This means "this.agentcategories" may not have a value at the time the screen is rendered. Give the property a default value (ie. if it is an array, assign it an empty array within the constructor) or conditionalize the display of the component that uses t

Re: [AngularJS] Reason for "Undefined"

2018-12-03 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
Arnaud's solution is preferrable to mine. On Mon, Dec 3, 2018 at 4:04 PM Arnaud Deman wrote: > Hi, > > Another possibility could be to use the async pipe > . > > The general idea would be to do something like this in your component : > > import { Observab

Re: [AngularJS] singleton service

2018-12-08 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
Two. Basically, you want a module to provide the service. So, if you've got one module for your application, it is your application module that should provide the service. On Sat, Dec 8, 2018, 12:50 Reza Razavipour wrote: > If you provide a service in two components’ “providers” section of > @C

Re: [AngularJS] Typescript question: interface that extends a generic

2019-02-22 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
Typescript has composition, so this really isn't necessary. interface A {} interface X {} function f(ax: A&X) {} On Fri, Feb 22, 2019, 02:31 Christophe HOARAU wrote: > Hello, > > I know this is not specific to angular, but as angular is one of the most > active typescript users I was wonder

Re: [AngularJS] Type 'string' is not assignable to type 'never'.ts(2322)

2019-04-02 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
It's just a guess, but I think it's because the "data" array within collections does not have a type. Try this: collections = {count: 60, data: [] as any[]} Also... Stop using "var" and use "let" instead. Variables defined by "var" are hoisted and this can have negative effects on your code. On T

Re: [AngularJS] CORS error passing customized HTTP headers

2019-04-25 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
This is nothing to do with Angular. You need to reconfigure your API server: https://www.w3.org/TR/cors/ You probably need to add the custom header to the Access-Control-Expose-Headers value. Look for a middleware for your server technology (ex. for ExpressJS: https://www.npmjs.com/package/cors).

Re: [AngularJS] Error Message in Component Folders

2019-04-27 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
It would seem that your component references a CSS file that doesn't exist. On Sat, Apr 27, 2019, 14:55 Christian Solis wrote: > > Hi all, > > I am new to Angular and I was building out a project through a tutorial I > found. I was at the end of it when the following message appeared on my > te

Re: [AngularJS] Re: Angular 6 HttpErrorResponse on Get with 200 status

2019-05-05 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
It looks like an exception is being thrown while processing the request. According to the error, you are not passing a proper URL and it looks like you're trying to do a GET on "THE URL". Check out the value of "this.jasperSamlURL". On Sun, May 5, 2019, 18:50 Knight wrote: > This code is making

Re: [AngularJS] Need for product_price to be a number

2020-07-17 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
Hi Maureen, I do not see where you set the product_price variable. Did you forget to initialize it's value? -Luke On Fri, Jul 17, 2020 at 7:33 AM Maureen Moore wrote: > When I get the product_price it returns "Unsupported value type" as a > result of the function below but I need for it to be a

Re: [AngularJS] Re: Need for product_price to be a number

2020-07-17 Thread &#x27;Lucas Lacroix&#x27; via Angular and AngularJS discussion
Hi Maureen, In the submit function, you have "product_price =". That will set the variable passed into the function to a new value. If you want to set the variable used by the HTML template, you need "this.product_price =" instead. -Luke On Fri, Jul 17, 2020 at 8:34 AM Maureen Moore wrote: > I