[AngularJS] Re: Angular 2+ and Redux

2019-10-24 Thread Hervé Le Cornec
Hello Sander, Thank you for your answer. I agree wth you. However in my sens there are other ways to be sure that all the APIs are designed the same way, without embedding Redux. Using the best practices of Angular for instance, instead of learning Redux first, and then using its best

[AngularJS] Re: Angular 2+ and Redux

2019-10-23 Thread Sander Elias
Hi Hervé, There is no need for native redux in an Angular app. It solves a problem Angular doesn't have. However, as often in our trade, some things are hype-driven. There is never a real need for redux in an Angular app. Still, there are benefits. When you are in a large mixed team, redux

[AngularJS] Re: Angular 2 Write all the console. log statements to a file in Server

2019-03-10 Thread Tito
check out morgan (https://www.npmjs.com/package/morgan) or some other logger var express = require('express') var fs = require('fs') var morgan = require('morgan') var path = require('path') var rfs = require('rotating-file-stream') var app = express() var logDirectory = path.join(__dirname,

[AngularJS] Re: Angular 2 Write all the console. log statements to a file in Server

2019-03-09 Thread Sander Elias
Hi Alekhya, When you have full control over the page you can replace console with a service of your own. This is not a “good practice”™️, and I would recommend against it unless you really know what you are doing. the idea is something like this: orgConsole = consoleconsole = {

Re: [AngularJS] Re: Angular 2 Write all the console. log statements to a file in Server

2019-03-09 Thread Alekhya Pulavarthi
Is there any such library to implement or can you provide me any reference link to go through it On Sun, Mar 10, 2019, 12:27 Christophe HOARAU wrote: > Hello, > > I think you should not be using console directly. > If you use a service or a tool, you could then just create a method that > would

[AngularJS] Re: Angular 2 Write all the console. log statements to a file in Server

2019-03-09 Thread Christophe HOARAU
Hello, I think you should not be using console directly. If you use a service or a tool, you could then just create a method that would log on console and make an http call to the server. At least that's how I handled it. Best regards On Wednesday, March 6, 2019 at 2:03:34 PM UTC+4, Alekhya

Re: [AngularJS] Re: Angular 2 -> Angular 7 Upgrade: "TypeError: System.config is not a function"

2019-02-18 Thread Sander Elias
Hi Suresh, When you are asking questions, try to do that in a new thread, or at least in a thread that is related to your question. Changes are slim you get an answer otherwise. https://www.protractortest.org/#/tutorial is a good place to start. Regards Sander -- You received this message

Re: [AngularJS] Re: Angular 2 -> Angular 7 Upgrade: "TypeError: System.config is not a function"

2019-02-18 Thread Harry Whitehouse
Suresh -- I'm sorry to say I'm an Angular newbie and have been focusing my efforts on Angular 5, 6 & 7. And as so far as protractor, I haven't yet tried that. So I hope that someone else jumps in and can help you! Best Harry On Monday, February 18, 2019 at 5:59:54 AM UTC-8, Suresh Kumar

[AngularJS] Re: Angular 2 -> Angular 7 Upgrade: "TypeError: System.config is not a function"

2019-02-18 Thread Harry Whitehouse
Thank you Sander! You clarified the systemJS vs. Webpack issue for me and that was very helpful. I was able to finally get the application to run (using a systemJS version 0.x.x) by adjusting the paths to the HTML files in the project. The original project had full path names in the

Re: [AngularJS] Re: Angular 2 -> Angular 7 Upgrade: "TypeError: System.config is not a function"

2019-02-18 Thread Suresh Kumar
I'm beginner to Protractor Please suggest me a good resource to learn. I have been doing selenium for sometime.. Using Java. On Mon, Feb 18, 2019, 5:36 AM Sander Elias Hi Harry, > > You seem to have some really old tooling around, and a build that's still > centred around systemJS. From

[AngularJS] Re: Angular 2 -> Angular 7 Upgrade: "TypeError: System.config is not a function"

2019-02-18 Thread Sander Elias
Hi Harry, You seem to have some really old tooling around, and a build that's still centred around systemJS. From version 2 on the CLI switched to webpack. It will make your life a lot easier if you do too. The easy way is: Use the CLI to generate a new empty app. Add the deps yo uneed, and

[AngularJS] Re: Angular 2 -> Angular 7 Upgrade: "TypeError: System.config is not a function"

2019-02-17 Thread Harry Whitehouse
Upon further searching I found a re-read a comment on this thread: https://stackoverflow.com/questions/52810507/i-am-getting-to-see-error-system-config-is-not-a-function-in-browser-console It was pointed out that if one uses systemjs with anything but a 0.x.x version, the system.config.js file

[AngularJS] Re: Angular 2 - Child component is holding value of previous instance of same component

2018-10-21 Thread Srinivas Sria
Title: new angular development features and improvements with error handling webinar by google employees About Angular: Angular is a Typescript-based open-source front-end web application platform led by the Angular Team at Google and by a community of individuals and corporations. What

[AngularJS] Re: Angular 2 - Child component is holding value of previous instance of same component

2018-10-10 Thread Sander Elias
Hi Mark, I think you are passing in an object for ‘curItem’ is that right? Then you update one of its properties, and this doesn’t reflect. Is that right? The problem is, change detection works by checking if there is a new value. There is none, as curItem is still curItem, its contents have

[AngularJS] Re: Angular 2 error monitoring

2018-08-17 Thread Zlatko Đurić
Hi, There are serveral good open-source alternatives. For example, you can install and run your own Sentry instance (https://docs.sentry.io/server/installation/) for free, and use Raven.js as your ExceptionHandler (https://raven-js.readthedocs.io/en/stable/integrations/angular2.html). Or you

[AngularJS] Re: Angular 2 error monitoring

2018-08-17 Thread ACHARYA ANIL KUMAR
You can use logging service and then push to some api+ On Thursday, August 16, 2018 at 11:15:23 AM UTC+5:30, Nitish kumar wrote: > > > Hi, > > I want to use error-monitoring which notify me when any error or > exceptions is occurs in my angular 2 project. > > I found many paid services for

[AngularJS] Re: Angular 2 error monitoring

2018-08-16 Thread Tito
create a service that dumps all errors to a backend or log file then have a chron job that emails you every hour? every minute (hopefully not that many errors :) ) On Wednesday, August 15, 2018 at 10:45:23 PM UTC-7, Nitish kumar wrote: > > > Hi, > > I want to use error-monitoring which notify

[AngularJS] Re: Angular 2+ - Access to undeclared member don't return type error

2018-05-01 Thread Antonio Nardiello
Thanks so much -- 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 angular+unsubscr...@googlegroups.com. To post to this group, send email to

[AngularJS] Re: Angular 2+ - Access to undeclared member don't return type error

2018-04-30 Thread Sander Elias
Hi Antonio, It is there to prevent typing errors during compilation. Typescript has become much better at inference, so it is really hard now to create an "undeclared" (read:un-typed) members. But if you manage to do so, the $any can take care of it. So the purpose is to prevent false

[AngularJS] Re: Angular 2 SEO

2018-04-23 Thread Sander Elias
Hi Sunny You should check out Angular Universal . that way you can do server-side rendering, and that will improve your SEO experience. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS

[AngularJS] Re: Angular 2 SEO

2018-04-23 Thread Qin Wu
You can try SSR server render 在 2018年3月23日星期五 UTC+8下午10:53:44,Sunny Bhagat写道: > > What is the best way to make my angular 2 project seo friendly. > Meta description and title are dynamic but those content appear as blank > when googlebot crawls it. > -- You received this message because you

[AngularJS] Re: Angular 2 and ndDialog

2018-03-26 Thread Sander Elias
Hi Stelios, I just looked, and ndDialog seems to be an AngularJS lib only. But you can ask them, open an issue in their repo, and you will find out. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To

[AngularJS] Re: Angular 2 controller and views

2018-03-22 Thread Tito
sure why not! but does that follow best practice On Thursday, March 22, 2018 at 7:32:08 AM UTC-7, Venkatesh Parihar wrote: > > Can we create different folder for controller and views in angular 2 ? > -- You received this message because you are subscribed to the Google Groups "Angular

[AngularJS] Re: Angular 2: Organizing a large web application. Is there a way to split it into smaller apps that can communicate with one another?

2018-02-08 Thread Sander Elias
Hi Rahul, In my opinion, the way forward in this lies in custom elements. Especially the upcoming Angular Elements variation. It will need some rethinking of current concepts. I'm looking forward to the point where I can use a CE, let it register a few routes on instantiation, and be done

[AngularJS] Re: Angular 2: Organizing a large web application. Is there a way to split it into smaller apps that can communicate with one another?

2018-02-08 Thread Rahul Tiwari
Hey Sander, The IFRAME approach mentioned in the article , we were already using this in our current application and wanted to get rid of those iframes due to the issues they can cause in longer run. Having said that, though this article has re-directed me to few important articles which are

[AngularJS] Re: Angular 2: Organizing a large web application. Is there a way to split it into smaller apps that can communicate with one another?

2018-02-06 Thread Sander Elias
Hi Rahul, Perhaps this article by Manfred is something you can use? Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion"

[AngularJS] Re: Angular 2: Organizing a large web application. Is there a way to split it into smaller apps that can communicate with one another?

2018-02-06 Thread Rahul Tiwari
Hi Sander, Appreciate for the comments. Really hoping if you can share some work around anytime soon to achieve this meanwhile we are also trying to crack this thing on our side. On Tuesday, February 6, 2018 at 11:25:22 AM UTC+5:30, Sander Elias wrote: > > Hi Rahul, > > You can have multiple

[AngularJS] Re: Angular 2: Organizing a large web application. Is there a way to split it into smaller apps that can communicate with one another?

2018-02-05 Thread Sander Elias
Hi Rahul, You can have multiple applications, but multiple routers will run you into problems. This might be worked around, but currently, I have not seen this done yet. I will ask around if someone has some experience with this. Regards Sander -- You received this message because you are

[AngularJS] Re: Angular 2: Organizing a large web application. Is there a way to split it into smaller apps that can communicate with one another?

2018-02-05 Thread Rahul Tiwari
Hi All, I was trying to use an angular application which I have published as NPM library, this application has lazy loaded modules, one app module which I renamed as CoreModule to avoid conflict with the host application appmodule. But when I try to use this NPM library by installing it to my

[AngularJS] Re: Angular 2 Dynamically modify Button in Table

2018-01-28 Thread Rob Shepherd
OK ... I am new to Angular ... Can you point me at some good documentation that explains how to create a button component that would handle this? Thanks, Rob.. On Sunday, 28 January 2018 18:08:32 UTC+11, Sander Elias wrote: > > Hi Rob, > > You can certainly hack this in. But it is much simpler

[AngularJS] Re: Angular 2 Dynamically modify Button in Table

2018-01-28 Thread Rob Shepherd
OK ... I am new to Angular ... Can you point me at some good documentation that explains how to create a component that would handle this. Thanks, Rob.. On Sunday, 28 January 2018 18:08:32 UTC+11, Sander Elias wrote: > > Hi Rob, > > You can certainly hack this in. But it is much simpler by

[AngularJS] Re: Angular 2 Canvas Game Engine

2018-01-28 Thread Sander Elias
HI Abel, Nicely done! Regards Sander -- 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 angular+unsubscr...@googlegroups.com. To post to this

[AngularJS] Re: Angular 2 Dynamically modify Button in Table

2018-01-27 Thread Sander Elias
Hi Rob, You can certainly hack this in. But it is much simpler by just creating an button component that handles it. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop

[AngularJS] Re: Angular - 2

2018-01-04 Thread danamanisha
hello want to learn angular with realtime examples checkout my channel https://www.youtube.com/watch?v=OwPLG1agi_A=PLoFTEfCXebzrJP5JlPm2n-jlIXQ2kFo8M On Thursday, December 31, 2015 at 2:57:28 PM UTC+5:30, Ankush Joshi wrote: > > Hello Guys, > > Can you pls suggest me some sites or pdfs to

[AngularJS] Re: Angular - 2

2018-01-04 Thread danamanisha
hello want to learn angular 4 with realtime example join my channel and stay updated https://www.youtube.com/channel/UC0qBmCO9CtX5_37WECkFkhw On Thursday, December 31, 2015 at 2:57:28 PM UTC+5:30, Ankush Joshi wrote: > > Hello Guys, > > Can you pls suggest me some sites or pdfs to begin with

[AngularJS] Re: Angular 2: Organizing a large web application. Is there a way to split it into smaller apps that can communicate with one another?

2017-12-21 Thread Sander Elias
Hi Maria, Yes, you are wrong;-) You can have as many entry pages as you want in one domain. "routing" between 2 pages is as simple as putting an old-fashioned hyperlink between the 2. start myApp start app that has the name index.html Angular has zero bearing on this. Make sure your server is

[AngularJS] Re: Angular 2: Organizing a large web application. Is there a way to split it into smaller apps that can communicate with one another?

2017-12-20 Thread Maria
Correct me if I'm wrong but I think the router in the main app is expecting me to define a route for the child app, maybe because both apps are in the same domain? El miércoles, 20 de diciembre de 2017, 9:53:31 (UTC-5), Maria escribió: > > Let me try to explain what I'm trying to do, and what

[AngularJS] Re: Angular 2: Organizing a large web application. Is there a way to split it into smaller apps that can communicate with one another?

2017-12-20 Thread Maria
Let me try to explain what I'm trying to do, and what I'm doing. I have create a SPA (secondapp) for a specific project, now they want to have a portal including that SPA previous created. So, I'm trying to get that portal or main SPA to call the secondapp. What I'm doing is building my

[AngularJS] Re: Angular 2: Organizing a large web application. Is there a way to split it into smaller apps that can communicate with one another?

2017-12-20 Thread Maria
Hi, Yes, I'm trying to route from one SPA to another, but that other SPA I named the index.html as app2index.html and app2main.ts, so I'm trying to do a href='/mySecondSpa'>Second spa but I get the Error: Cannot match any routes. URL Segment: /mySecondSPA. But if I leave the default index and

[AngularJS] Re: Angular 2: Organizing a large web application. Is there a way to split it into smaller apps that can communicate with one another?

2017-12-19 Thread Sander Elias
Hi Maria, A lot of things going on in this thread. I'm not sure if I understand your question? Are you trying to route from one SPA to another? Or inside one SPA? If you want to go to a different SPA, you use a normal anchor (`Second spa`). inside a single one, you use the routerlinks.

[AngularJS] Re: Angular 2: Organizing a large web application. Is there a way to split it into smaller apps that can communicate with one another?

2017-12-19 Thread Maria
> Hi all, > I'm trying to do the same thing as Milad did, but I think I'm not getting the navigation part. I'm keep getting ERROR Error: Uncaught (in promise): Error: Cannot match any routes. Can someone share an example on how the navigation should work? I'm trying to get to the app2.html,

[AngularJS] Re: Angular 2: Organizing a large web application. Is there a way to split it into smaller apps that can communicate with one another?

2017-12-19 Thread Maria
Hi Sander, I'm just wondering how the navigation should be? I'm trying to accomplish the same thing as Milad, but when I'm trying to set up the navigation I'm keep getting ERROR Error: Uncaught (in promise): Error: Cannot match any routes. What I did, and please correct me if I'm wrong, was

[AngularJS] Re: Angular 2/5 - roll your own admin page or use a template/library/service?

2017-12-04 Thread Sander Elias
Hi Jonathan, I usually roll my own, sometimes I copy parts from other starters. But most of the time, it takes me more time to adapt then it is to start fresh. I do mimic some of the things I find, and sometimes I just use the HTML and css from templates to safe me some time. Regards Sander

[AngularJS] Re: Angular 2/5 - roll your own admin page or use a template/library/service?

2017-12-04 Thread Tito
What are you attempting to do in this Admin page? a lot of templates out there can be a bit too fat and then you have to do some trimming. writing your own stuff in the long run is pretty nice because you have control over it. but using templates is also nice in that it can reduce your work

[AngularJS] Re: angular 2

2017-12-04 Thread Sander Elias
Do you have a question? -- 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 angular+unsubscr...@googlegroups.com. To post to this group, send

[AngularJS] Re: Angular 2: Organizing a large web application. Is there a way to split it into smaller apps that can communicate with one another?

2017-11-16 Thread Rahul Tiwari
Hi guys, are there any suggestions to develop this kind of architecture to support large web application development in angular 2. Highly appreciate any help here. Thanks, Rahul On Tuesday, November 14, 2017 at 2:10:14 PM UTC+5:30, Rahul Tiwari wrote: > > Hi Sander > > Thanks for the

[AngularJS] Re: Angular 2 web sockets

2017-11-15 Thread Tito
This was the one I forgot to paste that really helped me out figuring things out. real world not just chat https://loopback.io/doc/en/lb2/Realtime-socket-io.html On Monday, November 13, 2017 at 7:20:01 AM UTC-8, abd...@nextbrainitech.com wrote: > > Can any one please suggest me a good tutorial

[AngularJS] Re: Angular 2 web sockets

2017-11-15 Thread Tito
haha I looked high and low and all I see is stupid chat apps. nothing real world until I found this one. On Monday, November 13, 2017 at 7:20:01 AM UTC-8, abd...@nextbrainitech.com wrote: > > Can any one please suggest me a good tutorial for angular 2 web-sockets > apart from the web-sockets

[AngularJS] Re: Angular 2: Organizing a large web application. Is there a way to split it into smaller apps that can communicate with one another?

2017-11-14 Thread Rahul Tiwari
Hi Sander Thanks for the information. I understand this tool provide the solution which will be fit for this sort of problems. But I was curious and really wanted to know how @Milad & team has organized their projects and how they have managed to pull this thing off without depending on any

[AngularJS] Re: Angular 2: Organizing a large web application. Is there a way to split it into smaller apps that can communicate with one another?

2017-11-13 Thread Sander Elias
Hi Rahul, Since recently, the nx-tool from the nrwl team are available, those can help set up a large application. The way I described above is still a valid option. but that is an alternative that comes tools to set things up. Regards Sander -- You received this message because you are

[AngularJS] Re: Angular 2: Organizing a large web application. Is there a way to split it into smaller apps that can communicate with one another?

2017-11-13 Thread Rahul Tiwari
Hi Milad, As mentioned here,you have managed to solve your problem based on the discussion. Recently I also started looking for solution to the similar and want to develop exactly the same way as directory structure which you have described in above comments. So I have a request if you could

[AngularJS] Re: Angular 2 + passport-github

2017-11-09 Thread Valay Variance
Hi Eugene, This is Vkumar shah, from Variance InfoTech Pvt Ltd. We are working in Angular 4 & Many other technology. We are looking for offshore development consultant & Providing solution. Is there any opportunity ? I am happy to work with you if you have plan we have development center in

[AngularJS] Re: Angular 2 + passport-github

2017-11-04 Thread Sander Elias
Hi Eugene, Yeah, that code is not supposed to be in the browser. The code you are showing should be on your server side. Not in the browser. Also, giving your key's away in a public forum is not so smart. If I were you, I would invalidate this combo ASAP. When you have implemented the above in

[AngularJS] Re: Angular 2 + passport-github

2017-11-04 Thread eugene . kobyak
I follow this guide -> https://www.npmjs.com/package/passport-github And my implementation is: import { Component, OnInit, Input } from '@angular/core'; import { passport } from 'passport'; import { Strategy } from 'passport-github'; @Component({ selector: 'app-Callback', templateUrl:

[AngularJS] Re: Angular 2 + passport-github

2017-11-04 Thread Sander Elias
Hi Eugene What is your issue? AKAIK there is nothing Angular specific in that flow. Follow the passport sample, and then implement that in your app. If there is something specific to angular, don't hesitate and ask us! Preferably with a running sample. Regards Sander -- You received this

[AngularJS] Re: angular 2 connect to database

2017-10-05 Thread Tito
I connect to my Microsoft SQL Server database using express (https://www.npmjs.com/package/express) mssql (https://www.npmjs.com/package/mssql) Then ip.address/api/addresses I get the data that I need On Wednesday, October 4, 2017 at 6:32:46 PM UTC-7, hassan mohamed wrote: > > Hi I want to

[AngularJS] Re: angular 2 connect to database

2017-10-04 Thread Sander Elias
Hi Hassan, You really should not connect your browser directly to your DB. The security risks are way to high. That is why the server is set up so, that it is very hard to do. (It's not imposible, but it really shouldn't nedone like that!) What you need is a piece of middleware that sits

[AngularJS] Re: Angular 2/4 Production Mobile Slowness

2017-09-22 Thread Sander Elias
Rob, I forgot to mention, I think it is a good idea to port your app over the the CLI! -- 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] Re: Angular 2/4 Production Mobile Slowness

2017-09-22 Thread Sander Elias
Hi Rob, Well, I'm sorry I have to break it to you, but yes, you need AOT. And modules. Lazy load everything is the track to fast applications. Also, adding a sevice worker will help by caching your resources a tad more aggressive. Regards Sander -- You received this message because you are

[AngularJS] Re: ANGULAR 2 ACTIONS

2017-09-14 Thread sony s
Thank you for your valuable information.It works for me. -- 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] Re: ANGULAR 2 ACTIONS

2017-09-14 Thread Sander Elias
Hi Sonny, Inject DOCUMENT form core, and put an event listener on it. I think you want to react to 'blur' and 'focus' events/ Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group

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

2017-09-13 Thread 'Lucas Lacroix' 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

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

2017-09-13 Thread Alexander Khromov
Hi, did you find some workaround here? I think i have same issue. In my case when i run application on lite server with 'npm start' this works and X-XSRF-TOKEN header is sending to BE server. But when i bundle my angular2 application with systemjs-builder and deploy it to apache web server this

[AngularJS] Re: Angular 2 with Magento Integration

2017-09-12 Thread Sander Elias
Hi Belyamani, This is not an Angular issue, but an issue with your server. you need to configure your server so it apply's CORS correctly. Perhaps Sachin's blogs might help you too. Regards Sander -- You received this message because you are subscribed to the

[AngularJS] Re: Angular 2 with Magento Integration

2017-09-12 Thread Sachin S
Hi, May be a run through my blog may help you with the issue: http://simplysach.blogspot.in/search?q=CORS On Sunday, March 19, 2017 at 3:29:34 AM UTC+5:30, belyamani mohammed wrote: > > This is integration issue. Your help is very appreciated > > > I have both Angular2 and Magento2 (bitnami)

[AngularJS] Re: Angular 2+ Virtual Keyboard

2017-09-08 Thread Sander Elias
Hi Charles, You don't need any special Angular 2 keyboard. Although I would avoid anything that's built on jQuery. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop

[AngularJS] Re: Angular 2 - Please suggest a data table for add, delete ,edit option with filter,sorting and pagination

2017-09-06 Thread kachhadiya . sagar000
oky -- 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 angular+unsubscr...@googlegroups.com. To post to this group, send email to

[AngularJS] Re: Angular 2 Tutorial: Routing in IIS 8.5

2017-09-06 Thread Braden Clapp
What would I need to change if I wanted to be able to go directly to the HeroDetailComponent? Say I have an email sent to me with a link to the hero's id: www.example.com/QuickStart/detail/22 I have a project where I am trying to do something similar but the path is overwritten. On Thursday,

[AngularJS] Re: Angular 2/4 changing the background color of a panel dynamically

2017-08-31 Thread Sander Elias
Hi Dawg, If you change the CSS, the colour will change for all visible panels. Is that what you are after? If yes, you can use css custom properties. If no, it's the easiest to just set [style.color]="myColorFromData". Regards Sander -- You received this message because you are subscribed to

[AngularJS] Re: Angular 2 project structure, ports and routing table

2017-08-21 Thread Sander Elias
Hi Ranjeet, create a local server on port 3000 and deploy both of your apps to that server. The OS won't allow you to run 2 programs on the same port. As an alternative, you can run a reverse proxy(I use nginx fir this) to forward the requests to their own server. Regards Sander -- You

[AngularJS] Re: Angular 2 and SQl Database! how it works??

2017-08-08 Thread Tito
I have not graduated to Angular 2 yet. but I use Angular 1.x to connect to sql server using express as my api middleware and this module https://www.npmjs.com/package/mssql On Tuesday, August 8, 2017 at 7:35:44 AM UTC-7, Siyamand Rashid wrote: > > Hello im new to Angular 2 environment > i

[AngularJS] Re: [Angular 2] Custom Components and Local Variables

2017-07-31 Thread Sanansaattaja
thank you, I'll try it ! Am Montag, 31. Juli 2017 16:12:33 UTC+2 schrieb Sander Elias: > > No, the ng2know does not depend on template ref vars.It does supports the > changed callback as I put in the sample. Template ref vars >

[AngularJS] Re: [Angular 2] Custom Components and Local Variables

2017-07-31 Thread Sander Elias
No, the ng2know does not depend on template ref vars.It does supports the changed callback as I put in the sample. Template ref vars are not build to be used like that. You are supposed to use callbacks for your

[AngularJS] Re: [Angular 2] Custom Components and Local Variables

2017-07-31 Thread Sanansaattaja
Hi Elias, thank you for the answer - don't know though if it exactly answers my problem. Does the call produce local variables like the #knob1, #knob2 and so on? The component (ng2-knob) relies on a specified local variable Regards, Christian Am Montag, 31. Juli 2017 11:58:43 UTC+2 schrieb

[AngularJS] Re: [Angular 2] Custom Components and Local Variables

2017-07-31 Thread Sander Elias
Hi Sanansaattaje, Put the values in an array, you can then use this array in your controller. In your view you dom something like: Of course using an actual array from your controller makes this useful. Regards Sander -- You received this message because you are subscribed to the Google

[AngularJS] Re: Angular 2 - Get viewContainerRef of a different Component

2017-07-30 Thread Juri Strumpflohner
Hi Sumar, I happen to have just implemented such an example for teaching people about dynamic componente, template outlets and stuff. I'm pretty sure that article would help you as it showcases the same problem you're describing: https://juristr.com/blog/2017/07/ng2-dynamic-tab-component/ Let

[AngularJS] Re: Angular 2 and MongoDB, How can I use it?

2017-07-15 Thread mahendra patidar
On Friday, July 7, 2017 at 2:17:02 AM UTC+5:30, Sykes Creatives wrote: > > I want to implement a NoSQL type database for my web apps. I was using > Firebase but im not a fan of the restrictions and cant really afford the > premium version of it at the moment, so MongoDB was my next coice.

[AngularJS] Re: Angular 2 and MongoDB, How can I use it?

2017-07-11 Thread Tito
here is a very simple app I wrote that uses MongoDb with express.js in the middle https://github.com/yosiasz/d3-node-express-mongodb On Thursday, July 6, 2017 at 1:47:02 PM UTC-7, Sykes Creatives wrote: > > I want to implement a NoSQL type database for my web apps. I was using > Firebase but

[AngularJS] Re: Angular 2 and MongoDB, How can I use it?

2017-07-10 Thread Sander Elias
Hi Sykes, Yes that is possible. Iirc, mongo even has a direct rest interface you can hook up to the web. However, this is a *very high risk*. I would *never* hook up any DB directly to the web. Put in a server in between so you have control over the access to the DB. Have a look at the mean

[AngularJS] Re: angular 2

2017-07-01 Thread Sander Elias
Hi Mel, did you try searching for that text, and see where it originates? Regards Sander -- 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] Re: Angular 2 AoT with ES6

2017-06-28 Thread D Mellstrom
My previous answer omitted the static getter. This is how the ES6 constructor should actually be written: export class MyComponent { fooService; static get parameters() { return [[FooService]]; } constructor(fooService) { this.fooService = fooService; } } I have been writing my component

[AngularJS] Re: Angular 2 AoT with ES6

2017-06-23 Thread D Mellstrom
You must also add "es6" to "lib" array in tsconfig.json, or pass "--lib es6" to the compiler, to enable the use of all ES6 features such as Array.prototype.find() On Friday, June 23, 2017 at 12:52:22 AM UTC-5, D Mellstrom wrote: > > Most ES6 with decorators should compile fine with the

[AngularJS] Re: Angular 2 AoT with ES6

2017-06-22 Thread D Mellstrom
Most ES6 with decorators should compile fine with the TypeScript compiler, as TypeScript aims to be a superset of ES. The main caveat I have found is that you have to declare a class member if you want to assign it in the constructor in an ES6-like way. So this ES6 won't compile: export class

[AngularJS] Re: Angular 2 Design Question

2017-06-07 Thread Sander Elias
Hi Robert, Usually, TS is quite capable of figuring out stuff like this. Even on classes. Sometimes it falls through though. In that case, I would create an interface. This is much better as using generics, and you have pretty good control over what's "allowed" and not. Regards Sander --

[AngularJS] Re: angular 2 --- triggering angular event of an element using a button which is dynamically added to the template using ajax JavaScript.

2017-05-30 Thread Sander Elias
Hi K.venk, This is only possible if you are using the JIT, and then use the compiler. As the JIT is probably going to disappear, I would not recommend that. If you want some external JS to trigger actions in an angular app, you can use normal JS to do that. I would stay clear of jQuery, as it

[AngularJS] Re: Angular 2

2017-05-28 Thread Sander Elias
Hi Yogesh, Don't wrap inputs into components like this, it's going to be a nightmare to maintain. A load of teams have made this discovery already. If you want to alter your inputs all the same, add a directive that adds the needed stuff around it. Or just do a manual wrapping something like:

[AngularJS] Re: angular 2 REST api

2017-05-24 Thread Sander Elias
So you got it working now? Regards Sander -- 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 angular+unsubscr...@googlegroups.com. To post to

[AngularJS] Re: angular 2 REST api

2017-05-24 Thread amine ben cheikh
Hi , thank you for your response , but in my case i work on ANG2/Office365 apps so i use ADAL to perform authetification and provide Token , i had settings the requirement acces for Office graph rather than SHarepoint online and grinting all nedded prmissions . So this is my code samples that

[AngularJS] Re: angular 2 REST api

2017-05-22 Thread Sander Elias
Hi Amine, I think this needs to be configured at the server side. probably some settings in your SharePoint server. You probably need to enable https and basic authentication there. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and

[AngularJS] Re: Angular 2 posting empty object

2017-05-21 Thread Sander Elias
Hi Raja, Did you try logging out the request at the server-side? Are you sure you are providing the right fieldnames (uppercase matters often) Regads Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe

[AngularJS] Re: Angular 2 - Double level nested form - not initializing child of child

2017-05-20 Thread Warren Veerasingam
Hi Sander, Thanks for helping. I made the changes you proposed but I get this error: I reproduced my error here:https://embed.plnkr.co/8VxK655nulNPVMofiAvU/ Please check it out. Please advice! ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked.

[AngularJS] Re: Angular 2 - Double level nested form - not initializing child of child

2017-05-19 Thread Sander Elias
Hi Warren, Well, that is correct behaviour, as you are not adding any kids at the moment you do an addChild addChild() { const child: ChildData = { id: Math.floor(Math.random() * 100), childField1: '', childField2: '',

[AngularJS] Re: Angular 2 Setup with VS 2015 - Update 3

2017-05-18 Thread Oussama Dinia
Hello Rajaraman, If you want to get started with Angular, I would suggest you use Visual Studio Code or WebStorm for a start, and the angular-cli. These are lighter code editors, which will provide you with sufficient features to code Angular applications.

[AngularJS] Re: Angular 2/4 how to get parent module name (id) in child module?

2017-05-12 Thread Sander Elias
Hi Alexander, I forgot to mention, that it's not the names of the modules you are going to get there, but the module's themselves. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this

[AngularJS] Re: Angular 2/4 how to get parent module name (id) in child module?

2017-05-12 Thread Sander Elias
Hi Alexander, I don't have an answer that will fit your bill. However, you should look into the injector. I don't remember the details around this, but it is possible to use the injector tree to determine the closest parent of a service. Regards Sander -- You received this message because

[AngularJS] Re: Angular 2 Deployment

2017-05-10 Thread Sander Elias
Hi Shilpa, Deploy to where/what? Most of the time, it's copying over the contents of your dist folder to your host. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop

[AngularJS] Re: Angular 2 deployed to heroku, routes only work if i navigate to root page first

2017-04-24 Thread Sander Elias
Hi Stephan, You need to tweak your Heroku's settings to return your index.html instead of a 404. If you use node with express as a server add something like this: const path = require('path'); // For all get requests, send back index.html instead of 404 app.get('/*', function(req, res) {

[AngularJS] Re: Angular 2 and android webview

2017-04-16 Thread Sander Elias
Hi Elvin, We can try, but you are giving us little to help you. What is the error you get back? Regards Sander -- 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

[AngularJS] Re: [Angular 2] project not working after @angular/animation installation

2017-04-16 Thread Elvin Prasad
hi guys are you working on angular 2 ? i am facing a prob . with android webview and the angular 2. using MEAN stack can help me out On Thursday, April 6, 2017 at 7:23:58 PM UTC+8, Sander Elias wrote: > > Hi Marian, > > First thing to try, delete your node_modules folder, run a "npm clean >

[AngularJS] Re: Angular 2 - Unable to display array

2017-04-10 Thread Sander Elias
Hi Dawg, You are missing the part that you return an array. The ? operator and arrays are not a perfect fit. change: this.getInfService.getUserMethod(this.userID) .subscribe(data => this.userDetails = data); Into: this.getInfService.getUserMethod(this.userID) .subscribe(data =>

  1   2   3   4   5   6   >