[AngularJS] Re: Polynomial graph angular 7

2020-03-10 Thread Tito
I love using D3 graph. Hope it helps

https://observablehq.com/@harrystevens/introducing-d3-regression#polynomial

On Wednesday, February 5, 2020 at 9:42:54 AM UTC-8, Karthi Keyan wrote:
>
> Hi Team ,
>
> Please answer the below query.
>
> I have to develop the Polynomial graph as attached above based on the 
> dynamic datasets in angular 7.
>
> Another thing this polynomial graph should be very interactive such as 
> plotted co ordinates point should be shown where we can modify and update, 
> the graph should be refreshed. 
>
> Kindly advise which polynomial graph having this options and need less 
> efforts to implement in angular 7. Even if is paid , no issues.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/22d80111-73f1-4a54-b6fa-52f1ff5bfbb2%40googlegroups.com.


Re: [AngularJS] How to return json object from link url angular 7?

2020-01-02 Thread Tito
I think this guy is involved in a project way above his skill set and is asking 
others to do his work for him. A lot of question on this forum

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/f237ac0a-d53d-4af6-93d4-a9d72c6aa89a%40googlegroups.com.


[AngularJS] Re: Store in Angular, with async processes : no Redux please

2019-10-27 Thread Tito
Sembles un peux tros faché pour technologie

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/931988b7-3136-4eed-8b33-d2c0f24a20fc%40googlegroups.com.


[AngularJS] [KNOCKOUTJS] changing date time format to timezone ASIA/JERUSALEM from UTC

2019-09-18 Thread Tito
Show us what you are trying to do using stackblitz or something 
No one is gonna download those files might be unsafe

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/9e609d96-e185-4738-8e5a-975008953698%40googlegroups.com.


[AngularJS] Re: Remember login id and password in an angular 5 application

2019-08-20 Thread Tito
there is already an answer for you in https://gitter.im/angular/angular.js

+++V+++

no, just no
don't do that
at all
you don't keep authentication data in a front-end application
nor in a cookie
you only store it hashed in your database
and that's the backend's responsability
the only thing you're allowed to do is securely pass the data to the backend

On Tuesday, August 20, 2019 at 7:04:24 AM UTC-7, Raghu Ram wrote:
>
> I want to store login id and password whenever remember me checkbox is 
> checked. Next time when user enters url in the browser login id and 
> password should get populated ie..user need not enter user id and password.
> I have implemented using cookies, Can you please suggest me a secure way 
> of doing this.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/0333bd88-c156-465d-9a18-3f07473f0f49%40googlegroups.com.


Re: [AngularJS] Re: Performance Issue

2019-08-16 Thread Tito
https://code.angularjs.org/1.7.8/angular.min.js

On Thursday, August 15, 2019 at 5:54:31 PM UTC-7, Fariza Tajuddin wrote:
>
> I already try to minified my code and it's still the same 
> performance.Maybe more fast but not much as expected?is it because the 
> browser version not supported or maybe ram,cpu of the box?
>
> On Fri, Aug 16, 2019 at 8:06 AM Tito > 
> wrote:
>
>> are you using the full blown angular js or minified?
>>
>> https://gist.github.com/Restuta/cda69e50a853aa64912d
>>
>> On Thursday, August 15, 2019 at 3:34:05 AM UTC-7, Fariza Tajuddin wrote:
>>>
>>> Hi..
>>> I am developer for STB , previously we just used js for our code but for 
>>> new version we upgrade using angularjs.
>>> But the preformance for older box become worst using the new code.it's 
>>> it because the browser not supported the angular js?for your info, STB box 
>>> for linux box STB EC2108E: webkit version 3.0.0.2888 STB EC2108EB : webkit 
>>> version 3.0.0.2890
>>>
>> -- 
>> 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 ang...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/angular/ba57007e-11f5-4b48-8fb1-7f11804e4a25%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/angular/ba57007e-11f5-4b48-8fb1-7f11804e4a25%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/96cac8df-4abd-4782-bef3-8f9882c45184%40googlegroups.com.


Re: [AngularJS] Re: Performance Issue

2019-08-16 Thread Tito
not minified your code, but minified  angularJS 

On Thursday, August 15, 2019 at 5:54:31 PM UTC-7, Fariza Tajuddin wrote:
>
> I already try to minified my code and it's still the same 
> performance.Maybe more fast but not much as expected?is it because the 
> browser version not supported or maybe ram,cpu of the box?
>
> On Fri, Aug 16, 2019 at 8:06 AM Tito > 
> wrote:
>
>> are you using the full blown angular js or minified?
>>
>> https://gist.github.com/Restuta/cda69e50a853aa64912d 
>> <https://www.google.com/url?q=https%3A%2F%2Fgist.github.com%2FRestuta%2Fcda69e50a853aa64912d=D=1=AFQjCNGPLWcJk6Bok-wTELhwovvE4NpTkQ>
>>
>> On Thursday, August 15, 2019 at 3:34:05 AM UTC-7, Fariza Tajuddin wrote:
>>>
>>> Hi..
>>> I am developer for STB , previously we just used js for our code but for 
>>> new version we upgrade using angularjs.
>>> But the preformance for older box become worst using the new code.it's 
>>> it because the browser not supported the angular js?for your info, STB box 
>>> for linux box STB EC2108E: webkit version 3.0.0.2888 STB EC2108EB : webkit 
>>> version 3.0.0.2890
>>>
>> -- 
>> 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 ang...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/angular/ba57007e-11f5-4b48-8fb1-7f11804e4a25%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/angular/ba57007e-11f5-4b48-8fb1-7f11804e4a25%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/5817339f-cecf-4260-9818-752aab6890d1%40googlegroups.com.


[AngularJS] Re: Performance Issue

2019-08-15 Thread Tito
are you using the full blown angular js or minified?

https://gist.github.com/Restuta/cda69e50a853aa64912d

On Thursday, August 15, 2019 at 3:34:05 AM UTC-7, Fariza Tajuddin wrote:
>
> Hi..
> I am developer for STB , previously we just used js for our code but for 
> new version we upgrade using angularjs.
> But the preformance for older box become worst using the new code.it's it 
> because the browser not supported the angular js?for your info, STB box for 
> linux box STB EC2108E: webkit version 3.0.0.2888 STB EC2108EB : webkit 
> version 3.0.0.2890
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/ba57007e-11f5-4b48-8fb1-7f11804e4a25%40googlegroups.com.


[AngularJS] Re: load external file on service

2019-08-12 Thread Tito
load it using your basic

const typeDefs = require("./config");

On Monday, August 12, 2019 at 7:32:48 AM UTC-7, marc wrote:
>
> Hi all,
> I have a question for you. I should load an external file, a JSON file, 
> containing environment variables.
>
> For example:
>
> export class ClientService {
>  ...
>  checkMail(...): any {
>
>  return this.http.post(`${this.conf.hostServer}/api/otp`, ...)
>
>  }
>
>
>
> In this case I have this.conf.hostServer that must be read from another 
> class.
>
> @Injectable()
> export class ConfigService {
>  env: string
>  constructor(public http: HttpClient) {
>  this.setSocketServer();
>
>  }
>  setSocketServer() {
>  return new Promise((resolve: (a: boolean) => void): void => {
>  this.http.get('./config.json').pipe(map((x: any) => {
>  this.env = x.env;
>  resolve(true);
>  }))
>  .subscribe();
>  });
>  }
> }
>
>
>
>
> In this way I have in my ClientService the correct variables but I have to 
> wait in my components that they are ready.
> How can I do this ?
>
> I saw that is present another way using APP_INITIALIZE but I don't like it 
> for this case.
>
> What do you suggest me ?
>
>
> Thanks.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/21acc184-c478-470a-b6cb-9c6baf5c8a80%40googlegroups.com.


[AngularJS] Re: Using jQuery With Angular is it best practice and why would you do it?

2019-08-09 Thread Tito
that said please look at this 

https://ng-bootstrap.github.io/#/components/datepicker/overview

On Friday, August 9, 2019 at 5:58:54 AM UTC-7, Tito wrote:
>
> Do the folks you manage know you are posting this question?
>
> Trust your devs' choices especially if you dont have any dev experience 
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/882a66ed-2faa-4bc4-b329-0eb56de1ea1a%40googlegroups.com.


[AngularJS] Using jQuery With Angular is it best practice and why would you do it?

2019-08-09 Thread Tito
Do the folks you manage know you are posting this question?

Trust your devs' choices especially if you dont have any dev experience 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/a58658d5-eabd-41ca-9a15-b6e1e17e5f7d%40googlegroups.com.


[AngularJS] Re: data persistence

2019-08-08 Thread Tito
I would go with redis caching.

https://redis.io/topics/introduction


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/99bf5efd-8cc3-4526-99ef-8df8b9c527cc%40googlegroups.com.


[AngularJS] Re: data persistence

2019-08-07 Thread Tito
Answer this first. 
1. Are you doing any wild card searches.  
2. What backend is it?

Your issue most probably is not angular. Sounds like backend issue

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/c6afd964-debd-4951-babd-1680d7d21d9a%40googlegroups.com.


[AngularJS] data persistence

2019-08-07 Thread Tito
Out of the 2 million records which ones are pertinent to the user?
What kind of searches are you doing? Wildcard ```like '%search term%'

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/9c816138-be77-4e2c-9c97-e7466eedb85c%40googlegroups.com.


[AngularJS] First project with vb.net for Web, need some light

2019-08-02 Thread Tito
Just point your angular app to your vb.met api
Here is a sample project that uses heroesUrl as api endpoint pointer

https://github.com/yosiasz/tourofheroes-mssql

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/b39c1531-a11e-4110-a970-0f1e2fcfa6c0%40googlegroups.com.


[AngularJS] Angular 8 with an api

2019-07-29 Thread Tito
Greetings,

Finally diving in into angular 8 (why did I not before!!! bcs I love it)
This is what my app folder looks like (repo is 
https://github.com/yosiasz/tourofheroes-mssql)

./src
  app
  server --here my server express.js api resides

1. Is this a good approach?
2. If it is acceptable how do I start both client and server in one command?

Thanks 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/4b7909cc-d0c9-4173-b2a0-e134c0f1fb41%40googlegroups.com.


[AngularJS] should i learn ng-book or recommend a better book.

2019-07-29 Thread Tito
Why not learn the latest angular instead?

https://angular.io/

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/d3cae13c-c9db-44b0-994f-613ff2323e32%40googlegroups.com.


[AngularJS] angular visual studio line editor

2019-07-28 Thread Tito
Google is your friend as this question is unrelated to angular itself

https://www.google.com/url?sa=t=web=j=https://code.visualstudio.com/docs/getstarted/tips-and-tricks=2ahUKEwjek_rpttjjAhWKvp4KHSacCYAQFjABegQIARAB=AOvVaw1u5yMbtoqdE7S7Jm6J4dgT

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/2445b5cc-60ed-4105-ac6a-f8138638226e%40googlegroups.com.


[AngularJS] Re: Angular 1.5.8 Directive for Bootstrap 4 Accordion

2019-07-26 Thread Tito
what does your file structure look like

I have a directive file virts.directive.js in it I have the following

(function () {
'use strict';

angular
.module('app.myvms')
.directive('myHostsets', function () {
return {
restrict: 'EA',
templateUrl: 'app/myvms/myvms.myhostsets.html'
}
}) 
.directive('myVms', function () {
return {
restrict: 'EA',
templateUrl: 'app/myvms/myvms.myvms.html'
}
}) 
})();

Then in myvms.myhostsets.html you can embed your grid. The guy is actually 
right :)

On Wednesday, July 24, 2019 at 11:38:12 AM UTC-7, howard taylor wrote:
>
> 
>
> 
>
>  
>   
>
> Last Updated
> {{ record.*UpdatedDtTm* }}
>
>
>   ...   more rows, 1 row for each field
>
>  
>
> 
> 
>
> This guy here thinks the html for the table can be defined as:
>
> 
>
> 
>
> ..  with the table code pieced together with javascript as 
> the ui-grid.js file does the Bootstrap grid
>
> 
>
> 
>
> then the columns defined in javascript:
>
> columns:[ //define the table columns
> {title:"Last Updated", field:"*UpdatedDtTm*"},
>  . etc
> ],
>
> I can find no code any where that does this type of thing.
>
> If you have done this and can show me it would be swift!
>
> I hope this is clear :)
>
> Thanks.
>
>
>
> On Wednesday, July 24, 2019 at 12:34:44 PM UTC-5, Tito wrote:
>>
>> hey Howard. 
>>
>> Can you post your code somewhere out there like plunkr ? I have been able 
>> to do this if I understand your question.
>>
>> On Wednesday, July 24, 2019 at 9:56:01 AM UTC-7, howard taylor wrote:
>>>
>>> Angular includes a javascript library for a Grid Directive (ui-grid.js) 
>>> and it is a time saver but there isn’t one for an Accordion that contains a 
>>> table. I see examples in various places where people “claim” their code is 
>>> a Directive but their code is just a Bootstrap Accordion with a table 
>>> inside it. In other words there is no javascript that reads a table 
>>> definition and renders the table with a record in it in each Accordion line 
>>> item.
>>>
>>>
>>> In addition I have searched 3rd party vendors and none of them I have 
>>> seen offer this kind of Directive.
>>>
>>>
>>> This makes me think this cannot be easily done and is not worth the time 
>>> and effort or it just can’t be done.
>>>
>>>
>>> Does any one have any input on this? I have a rather difficult person 
>>> breathing down my neck over this and they cannot accept that perhaps this 
>>> is not the way to go or that it is not possible without expending many 
>>> hours of development for little bang.
>>>
>>>
>>> BTW - this shop is in the stone age using Angular 1.5.8 in a .net 
>>> environment.
>>>
>>>
>>> Thanks
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/0d6394ae-ef7e-4c07-be6b-dcb3b28f21a7%40googlegroups.com.


[AngularJS] Re: multiple pipes and does not work

2019-07-24 Thread Tito
is this for AngularJS or angular ?

On Wednesday, July 24, 2019 at 10:19:07 AM UTC-7, Dev C wrote:
>
>  
>
> I have above .html file where in sort array does not work, I mean I put 
> console.log in it but it never prints nor it sorts.
>
> Thanks
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/234485a1-417f-4f9c-b460-6a4b3a02682d%40googlegroups.com.


[AngularJS] Re: Angular 1.5.8 Directive for Bootstrap 4 Accordion

2019-07-24 Thread Tito
hey Howard. 

Can you post your code somewhere out there like plunkr ? I have been able 
to do this if I understand your question.

On Wednesday, July 24, 2019 at 9:56:01 AM UTC-7, howard taylor wrote:
>
> Angular includes a javascript library for a Grid Directive (ui-grid.js) 
> and it is a time saver but there isn’t one for an Accordion that contains a 
> table. I see examples in various places where people “claim” their code is 
> a Directive but their code is just a Bootstrap Accordion with a table 
> inside it. In other words there is no javascript that reads a table 
> definition and renders the table with a record in it in each Accordion line 
> item.
>
>
> In addition I have searched 3rd party vendors and none of them I have seen 
> offer this kind of Directive.
>
>
> This makes me think this cannot be easily done and is not worth the time 
> and effort or it just can’t be done.
>
>
> Does any one have any input on this? I have a rather difficult person 
> breathing down my neck over this and they cannot accept that perhaps this 
> is not the way to go or that it is not possible without expending many 
> hours of development for little bang.
>
>
> BTW - this shop is in the stone age using Angular 1.5.8 in a .net 
> environment.
>
>
> Thanks
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/f8adb5db-9c72-41bc-a5c3-ccb22daa585e%40googlegroups.com.


[AngularJS] Re: updating pouchdb local document raising 409 and not reflecting changes in database but in revisions

2019-07-21 Thread Tito
ክፍሎም ሐወይ documentation አንብባ !

https://pouchdb.com/guides/conflicts.html

Immediate conflicts

*Immediate conflicts* can occur with any API that takes a rev or a document 
with _rev as input – put(), post(), remove(), bulkDocs(), and 
putAttachment(). They manifest as a 409(conflict) error:



On Saturday, July 20, 2019 at 1:45:14 AM UTC-7, Kiflemariam Andom wrote:
>
> Hi Sander and All,
>
> Hope your weekend is doing well. Can someone help me please with pouchdb 
> please. It is driving me nuts. You can see my code here 
> https://stackblitz.com/edit/angular-akrcz9
>
> What happens is I can have any number of app settings so I might update 
> just one field of the document. And the update can happen from two, three 
> places at the same time since the app have differnet activities that happen 
> at the back. My prefered option was to use localStorage but the client 
> wants all to be stored in pouchdb. I run into 409 error but do see the 
> changes in the revisions, just not in the document itself. 
>
>
> import { Injectable } from "@angular/core";
>
>
> import PouchDB from "pouchdb";
>
> @Injectable()
> export class AppService {
>   private settingsDb; //to store app state
>
>   constructor() {
> // indicates if we are in the process of syncing or not.
> this.settingsDb = new PouchDB("field-support-app-state", {
>   auto_compaction: true
> });
>   }
>
>   updateAppState(fields) {
> /*
>   Create a document if it doesnt exist else update it
>   if creating a new, set all to default then update as
>   necessary.
>
>   Fields is dictionary of fields to update
>   e.g.
> {
> 'field1':'field1 value'
> }
> 
>   we can update the fields we want only
> */
>
> let vm = this;
>
> const docId = "_local/appState";
>
> this.settingsDb.get(docId, function(err, doc) {
>   if (err) {
> // cant get the info so create the document now with all the 
> fields
> console.log("config read error; possibly not found ", err);
> let data = { _id: docId };
> data["field1"] = "";
> data["field2"] = "";
> data["field3"] = "";
>
> data["lastNewDataDownloadedDisplayedOn"] = "";
> //replace as necessary now
> Object.keys(fields).forEach(function(key) {
>   data[key] = fields[key];
> });
> vm.settingsDb.put(data);
>   } else {
> // document exists already
> // so make changes only then put back the whole document
>
> Object.keys(fields).forEach(function(key) {
>   doc[key] = fields[key];
> });
>
> vm.settingsDb.put(doc);
>   }
> });
>   }
> }
>
>
> The method would be called from number of places with the field needed for 
> an update. To illustrate, this is from component.ts:
>
> import { Component } from '@angular/core';
> import {AppService} from './app.service';
>
> @Component({
>   selector: 'my-app',
>   templateUrl: './app.component.html',
>   styleUrls: [ './app.component.css' ]
> })
> export class AppComponent  {
>   name = 'Angular';
> constructor(
> public appSerivce: AppService
>   ) {
>
> this.appSerivce.updateAppState({
>   lastSyncErrorDisplayedon: ""
> })
>
>   this.randomUpdates();
>   }
>
>
>
>   randomUpdates(){
> let fields = ['field1', 'lastUpdatedLocationOn','lastItemMovedOn'];
> const vm : any = this;
> fields.forEach(field=>{
>
>   setInterval(
> vm.appSerivce.updateAppState({
> field : new Date().toLocaleString()
>   }) , 
> 
> 3000);
>
>   
> });
>   }
>
>
>
>
> }
>
>
> What I want is to be able to update fields of the document in a flexible 
> way. As the app grows, there is a chance a specific omponent or feature 
> might want to save its own setting and i don't want to create document for 
> each one tho that is also possible if absolutellly necessary.
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/e7c33b9a-e21a-4979-bd4c-8922ef338d44%40googlegroups.com.


[AngularJS] Re: Angular application is not loading.

2019-07-21 Thread Tito
please open dev console (F12 ) or right click on page and select source and 
then go to the console tab to see what errors you might be getting.

On Thursday, July 18, 2019 at 11:26:38 PM UTC-7, upasana sinha wrote:
>
> Angular application is not loading even after compiling the code 
> successfully. The basic angular application is also not working. I have 
> even updated the version of the browser. Please help me with this issue.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/a9f62f29-9fe5-40e2-a723-267a59dc2cb0%40googlegroups.com.


[AngularJS] How to make Method process in sequence

2019-07-14 Thread Tito
Method1().then(method2())

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/93ec90da-5d60-4e0f-bb53-923b9209e974%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] . Reactive forms are built around observable streams, where form inputs and values are provided as streams of input values, which can be accessed synchronously.

2019-06-29 Thread Tito
Check this tutorial

https://youtu.be/PhggNGsSQyg

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/76cf30a5-0704-4657-99df-f9f03c5d3754%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Application

2019-06-18 Thread Tito
ok

On Monday, June 17, 2019 at 11:42:28 AM UTC-7, Venkatesh madala wrote:
>
> Angularjs using with some websites  creating

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/d340f3a1-7dc6-4a86-b543-5f651bcee2ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Angular Sharing Components

2019-06-11 Thread Tito
Maybe creating your own internal repository like npm does. And you want each 
team to have a version of their own for the sae component, sounds like that 
would defeat the purpose of shared components to 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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/f6413303-5cbc-42ce-84eb-dd84f5d778ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [AngularJS] Re: Limit API Response to Class Attributes

2019-06-05 Thread Tito
S'il te plaid ne hijack pas l'autre thread. Commence ta proper 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 email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/0eafb06a-7d0b-40c1-a967-46e55f106eb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Angularjs is not updating ng-model value when the value of dropdown/select is being changed

2019-06-04 Thread Tito
https://docs.angularjs.org/api/ng/directive/ngOptions

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/f5065ef2-cc4a-451e-8f52-98c7e88be40d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Angularjs is not updating ng-model value when the value of dropdown/select is being changed

2019-06-04 Thread Tito
Look into ngoption and ngChange

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/9824f40a-d21f-465f-9680-69b4946e970b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: JavaScript(Input Text Field) Not working in AngularJs After ios 12.2 Update

2019-05-09 Thread Tito


What does 12.2 refer to?


On Thursday, May 9, 2019 at 7:11:39 AM UTC-7, Pankaj Jain wrote:
>
> Area:
> Safari
>
> Summary:
> our production site viewtrip.travelport.com is build with AngularJs and 
> javascript. After 12.2 update our input feilds are not working though user 
> types. its working well in before this  update. 
>
> Steps to Reproduce:
> 1. Logo in to viewtrip.travelport.com
> 2. Click on register 
> 3. Type input 
>
> Expected Results:
> the input values should be taken i9n email and password feilds 
>
> Actual Results:
> the value are not taking until 2-3 refreshes
>
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/840a7dd2-bd39-4771-a786-096e20524597%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Angular install for different users on same computer

2019-04-15 Thread Tito
Why are you doing this on each user? are they angular developers or users 
of a certain application?

On Monday, April 15, 2019 at 5:37:46 AM UTC-7, prakas...@gstt.nhs.uk wrote:
>
> Hi,
>
> I have already installed anguar for 1 user on a win 10 machine and is 
> working fine.
>
> However, when another user was created on the same PC, angular would not 
> compile.
>
> Though node.js was there and trying to get the version using 'ng 
> --version' throws the following error 'g : The term 'ng' is not recognized 
> as the name of a cmdlet'.
>
> All links to that error advise the install using 'npm install -g 
> @angular/cli@latest '.
>
> Q. 
> Do I have to run 'npm install -g @angular/cli@latest' for each user on a 
> windows pc ?
>
> Look forward to your help.
>
> Thank you.
>
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Pagination with server call

2019-04-09 Thread Tito
http://jasonwatmore.com/post/2016/01/31/angularjs-pagination-example-with-logic-like-google



On Tuesday, April 9, 2019 at 9:07:45 AM UTC-7, Dev C wrote:
>
> I have An Api which returns the data with pager object like page number 
> and page size, everytime i click on pagination control it should goto 
> server and retrieve data based on page i click, so in parameter i will 
> always send http: domain/Api/v1/pagination?pagenumber=1 size=10
>
> Please help if anybody has such example to refer.
>
>
> -- 
> Sent from my mi note 4 phone.
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] retrieving focus after components updated

2019-04-05 Thread Tito
Can you save lastFocus and refocus on that element that had the lastFocus

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Server side pagination

2019-04-03 Thread Tito
http://jasonwatmore.com/post/2016/01/31/angularjs-pagination-example-with-logic-like-google

On Wednesday, April 3, 2019 at 6:49:48 AM UTC-7, Dev C wrote:
>
> Hello
>
> Do anybody has server side pagination, wherein everytime on pagination 
> pager i click it should retrieve data from server or Api/end point /cursor 
> based pagination.
>
> Any help/pointers would be helpful.
>
>
> Thanks
>
>
>
> -- 
> Sent from my mi note 4 phone.
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] CDAP UI unable to run Testsuites

2019-03-28 Thread Tito
Could it be that you still have some modules installed globally that are of 
different version

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: compatibility issue

2019-03-25 Thread Tito
what seems to be the issue? post code or error that is failing ?

On Monday, March 25, 2019 at 7:21:41 AM UTC-7, Polsani Hema wrote:
>
> My angular js version 1.7.5 is working fine in Firefox, Chrome and safari 
> but not  in "INTERNET EXPLORER" and "MICROSOFT EDGE". 
>
> I have also added this line in my html head section:   ="X-UA-Compatible" content="IE=edge"> 
>
> Could you please help 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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Retrieving and displaying an image using web api from angularjs in asp.net without using mvc

2019-03-21 Thread Tito
I dont think you will get an answer by posting the same multiple times. its 
called spamming

Please show us the code you have here or on stackblitz?

On Wednesday, March 20, 2019 at 10:50:00 PM UTC-7, P.Suresh Kumar wrote:
>
> Greetings!
>
> How to retrieve and display an image based on employee_id by clicking on a 
> search button *using web api from angularjs in asp.net  
> without using mvc. *
>
> Regards
> Suresh Kumar. P
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Preventing automatic search in angularjs

2019-03-20 Thread Tito
Please show us the code you have here or on stackblitz?

On Wednesday, March 20, 2019 at 2:59:58 AM UTC-7, P.Suresh Kumar wrote:
>
> I have a form with a textbox and a button. The textbox contains 
> employee_id and the purpose is to find the image based on that id from the 
> database in angularjs. When I enter an input(employee_id) into that 
> textbox, it displays an image based on the id entered from the database *only 
> after clicking the search button. *And from the second time, it 
> automatically fetches an image from the database based on the id entered 
> *without 
> clicking the search button*. I need the image to be displayed *only after 
> clicking the search button*.
>
> Regards
> Suresh Kumar P
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Adding a timed flash error message and also a popup message

2019-03-19 Thread Tito
for example in my controller I have the following
function AddResource() {
var data = vm.prdata;

if (data.budgetid == null) {
toastr.info('Please select a Budget!');
return false;
}
if (data.selectedsalarygraderoleid == null) {
toastr.info('Role is required!');
return false;
}

if (data.resourcecount == null) {
toastr.info('Resource Count is required!');
return false;
}

if (data.resourcepercentage == null) {
toastr.info('Resource Percentage is required!');
return false;
}

payload.push({
budgetid: data.budgetid,
salarygraderoleid: data.selectedsalarygraderoleid,
resourcecount: data.resourcecount,
resourcepercentage: data.resourcepercentage
})

return dataservice.createBudgetResource(payload).then(function(data) { 
getBudgetResources();
return data;
});
}

On Thursday, March 14, 2019 at 11:12:55 PM UTC-7, P.Suresh Kumar wrote:
>
> I'm working on a form in angularjs, asp.net and mysql server. My 
> requirement is to display a flashing error message when add button is 
> pressed without entering any input in the form fields as well as when I 
> click the delete icon, it must be displaying a popup message like "Are you 
> sure you want to delete?", If I press OK, it must be again displaying a 
> popup message "Deleted successfully". I have attached my code below.
>
> index.aspx
> -
> <%@ Page Language="C#" AutoEventWireup="true" CodeFile="editv1.aspx.cs" 
> Inherits="edit" %>
>
> 
> http://www.w3.org/1999/xhtml;>
> 
> https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
> ">
> https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css; />
> https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css;
>  
> />
> https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.5/angular.js
> ">
> 
> var app = angular.module('MyApp', []);
> app.controller('MyController', function ($scope, $http, $window) {
> $scope.ButtonText = "Add";
> GetCustomers($scope);
> $scope.Add = function () {
> var obj = {};
> obj.id = $scope.Id == undefined ? 0 : $scope.Id;
> obj.name = $scope.Name;
> obj.country = $scope.Country;
> $.ajax({
> url: 'edit.aspx/AddUpdateCustomer',
> type: 'POST',
> contentType: 'application/json',
> data: JSON.stringify(obj),
> success: function (response) {
> GetCustomers($scope);
> },
> error: function (err) {
> alert(response.responseText);
> }
> });
> }
> $scope.Delete = function (id, $confirm) {   
> var obj = {};
> obj.id = id;
> $.ajax({
> url: 'edit.aspx/DeleteCustomer',
> type: "POST",
> contentType: 'application/json',
> data: JSON.stringify(obj),
> success: function (response) {
> GetCustomers($scope);
> },
> error: function (err) {
> alert(response.responseText);
> }
> });
> }
> $scope.Edit = function (id) {
> var customers = $scope.Customers;
> customers.map(function (customer) {
> if (customer.Id == id) {
> $scope.Id = customer.Id;
> $scope.Name = customer.Name;
> $scope.Country = customer.Country;
> $scope.ButtonText = "Update";
> }
> });
> }
> });
> function GetCustomers($scope) {
> $.ajax({
> url: 'edit.aspx/GetCustomers',
> type: "POST",
> contentType: 'application/json',
> success: function (response) {
> $scope.Customers = response.d;
> $scope.$apply();
> },
> error: function (err) {
> alert(response.responseText);
> }
> });
> }
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Name
> 
> 
>  class="form-control" name="name" ng-model="Name" required/>
>  ng-messages='form.$submitted.$error' ng-if='form.name.$dirty'>
> Required field
> 
> 
>

[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, 'log')
 
// ensure log directory exists
fs.existsSync(logDirectory) || fs.mkdirSync(logDirectory)
 
// create a rotating write stream
var accessLogStream = rfs('access.log', {
  interval: '1d', // rotate daily
  path: logDirectory
})
 
// setup the logger
app.use(morgan('combined', { stream: accessLogStream }))
 
app.get('/', function (req, res) {
  res.send('hello, world!')
})


On Wednesday, March 6, 2019 at 2:03:34 AM UTC-8, Alekhya Pulavarthi wrote:
>
> Hi Team
>
> Could you suggest me in implementing the logger in Angular 2 Application
>
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: AsyncValidatorFn vs AsyncValidator

2019-03-06 Thread Tito
https://angular.io/api/forms/AsyncValidatorFn

https://angular.io/api/forms/AsyncValidator

the latter looks to be more robust than the first ?

On Wednesday, March 6, 2019 at 3:37:17 PM UTC-8, Long Field wrote:
>
> Hi All
> Notice there are two interface for AsyncValidator what's difference?
>
> Cheers!
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Accessing Data in A Chained Call (Angular 7) -- A 'this' Problem?

2019-03-05 Thread Tito
Where is choseScale? I dont see it

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: MatStepper step icon question

2019-02-26 Thread Tito
did you see this?

https://github.com/angular/material2/issues/8997

On Tuesday, February 26, 2019 at 8:47:44 AM UTC-8, Les Stockton wrote:
>
>
> I have an issue using the Material Stepper, and not sure how to solve it.  
> Each step has an icon to the left of the label, and the icon usually has 
> the step number.
> But in some cases, they say "cr" instead, and I don't know why and don't 
> know how to prevent this.
>
> [image: Capture.JPG]
> ANyone else have this issue?
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: api best practice

2019-02-26 Thread Tito
And this would allow me to do each api as docker-able unit. nice!

Thanks!

On Tuesday, February 26, 2019 at 9:01:30 AM UTC-8, Sander Elias wrote:
>
> Hi Tito,
>
> I would go for something like:
>
> /apis/vmware
> /apis/budgetPlanning
> /apis/assetmanagement
>
> makes setting up the reverse proxies and deployment a bit easier, and I 
> think it's more versatile.
>
> However, it really doesn't matter too much. You should put those in 
> app-settings/constants anyway.
>
> 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 group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: api best practice

2019-02-26 Thread Tito
meaning

1.
/vmware.api
/budgetplanning.api
/assetmanagement.api

2.
apps.api
  /vmware.api
  /budgetplanning.api
  /assetmanagement.api


On Tuesday, February 26, 2019 at 8:29:31 AM UTC-8, Tito wrote:
>
> Greetings!
>
> The more angular apps we are building the more we realize it would behoove 
> us to make micro apis bundled as their own small footprint apis. Currently 
> each app has it's own api.
> We would like to make these part of a bigger mesh of services.
> what approach would you recommend
> 1. distinct folders for each api
> 2. one folder hosting all apis
>
> I am leaning more towards 1
>
> Thank you!
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] api best practice

2019-02-26 Thread Tito
Greetings!

The more angular apps we are building the more we realize it would behoove 
us to make micro apis bundled as their own small footprint apis. Currently 
each app has it's own api.
We would like to make these part of a bigger mesh of services.
what approach would you recommend
1. distinct folders for each api
2. one folder hosting all apis

I am leaning more towards 1

Thank you!

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Angular 7: Template URL -- full path or relative path?

2019-02-26 Thread Tito
Common denominator on literal path is docker.
What version of node are you using in docker vs non docker?

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: how to reference different controllers in a directive

2019-02-21 Thread Tito
this worked I Just needed to compile :)

.directive("estimateOpex", function() {
return {
restrict: "EA",
templateUrl: "app/estimate/opex/estimate.opex.html",
controller: 'estimateopex',
controllerAs: 'vm',
bindToController: true 
};
}) 

On Thursday, February 21, 2019 at 10:06:39 AM UTC-8, Tito wrote:
>
> Greetings,
>
> This is for AngularJS. Our directive looks like the following. In each of 
> those folders (app/estimate/opex, app/estimate/capex/) What do I need to 
> do so that each view (html) can reference it's own specific 
> estimate.opexcontroller.js and estimate.capexcontroller.js? Thanks!
>
> .directive("estimateOpex", function() {
> return {
> restrict: "EA",
> templateUrl: "app/estimate/opex/estimate.opex.html"
> //controller: estimateopex,
> //controllerAs: 'vm',
> //bindToController: true 
> };
> }) 
> .directive("estimateCapex", function() {
> return {
> restrict: "EA",
> templateUrl: "app/estimate/capex/estimate.capex.html"
> };
> })
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] how to reference different controllers in a directive

2019-02-21 Thread Tito
Greetings,

This is for AngularJS. Our directive looks like the following. In each of 
those folders (app/estimate/opex, app/estimate/capex/) What do I need to do 
so that each view (html) can reference it's own specific 
estimate.opexcontroller.js and estimate.capexcontroller.js? Thanks!

.directive("estimateOpex", function() {
return {
restrict: "EA",
templateUrl: "app/estimate/opex/estimate.opex.html"
//controller: estimateopex,
//controllerAs: 'vm',
//bindToController: true 
};
}) 
.directive("estimateCapex", function() {
return {
restrict: "EA",
templateUrl: "app/estimate/capex/estimate.capex.html"
};
})

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: getting data but unable to output

2019-02-20 Thread Tito
what does console.log($event) show?


On Wednesday, February 20, 2019 at 5:17:29 AM UTC-8, John Biddulph wrote:
>
> So, I am passing a letter accross to append onto the end of my urls as 
> follows: 
>
> http://www.mypubspace.com/pubsmobile/wherefirstletter.php?firstletter=L
>
> http://www.mypubspace.com/pubsmobile/wherefirstletter.php?firstletter=B
>
>
> here is my function:
> letterClicked($event) {
> this.publist = true;
> this.townlist = true;
> console.log('selected Letter:', $event);
> // tslint:disable-next-line:max-line-length
> this.http.get('
> http://www.mypubspace.com/pubsmobile/wherefirstletter.php?firstletter=' + 
> $event).subscribe(result => this.mytownList = result);
> // this.townService.getTowns($event).subscribe(result => this.townsList = 
> result);
> }
> $event is outputting the letter that has been clicked
>
>
> in my HTML,I am unable to loop through my list:
>
> 
> 
> {{town.rstown}}
> 
>
>
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: AngularJS Newbie - Trying to Get Controller to Work

2019-02-16 Thread Tito
but basically your problem was you declared the array as myFamily in the 
controller but you are using it as MyFamily in the html
javascript is super case sensitive Randall <> randall

On Friday, February 15, 2019 at 9:15:41 PM UTC-8, Randall V wrote:
>
> Hello --
> I am new to AngularJS.  I have begun reading Beginning AngularJS by author 
> Andrew Grant.  The examples I have tried so far have worked up until the 
> point that I tried my first controller.  I am using Notepad ++ as my 
> editor.  I have attached my .html file that contains my example code and 
> also have attached a screen shot of the result that is returned when I 
> execute the code.  I would appreciate if someone could give me an idea of 
> what I am doing wrong.
> Thanks,
> Randall V.
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: AngularJS Newbie - Trying to Get Controller to Work

2019-02-16 Thread Tito
I would highy encourage you if you can
1. Download and install a proper IDE namely visual studio code free and 
powerful
2. Here is a sample of your app
http://next.plnkr.co/plunk/x3zHQP20eoOFe6Tc


On Friday, February 15, 2019 at 9:15:41 PM UTC-8, Randall V wrote:
>
> Hello --
> I am new to AngularJS.  I have begun reading Beginning AngularJS by author 
> Andrew Grant.  The examples I have tried so far have worked up until the 
> point that I tried my first controller.  I am using Notepad ++ as my 
> editor.  I have attached my .html file that contains my example code and 
> also have attached a screen shot of the result that is returned when I 
> execute the code.  I would appreciate if someone could give me an idea of 
> what I am doing wrong.
> Thanks,
> Randall V.
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Angular 7 single click and double click events

2019-02-12 Thread Tito
why do you want a double click in a web application?

On Tuesday, February 12, 2019 at 5:55:03 PM UTC-8, rj wrote:
>
> My table row is configured like below,
>
>  [class.table-success]="venuesRunning[i]" [routerLink]="['/invoices', 
> v.userid]"
> >
> The above code snip works for a single click on the row.
>
> I tried to associate double clink on the above code 
>  [class.table-success]="venuesRunning[i]" [routerLink]="['/invoices', 
> v.userid]"
> (dblclick)="somefunction()">
>
> But now also, only single clink works.
>
> Double click worked when [routerlink] was removed. 
>  [class.table-success]="venuesRunning[i]"
> (dblclick)="somefunction()">
>
> What should i do achieve both single click and double clink functionality 
> in Angular7 ?
>
>
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


Re: [AngularJS] Re: trying to pass data in params using router

2019-02-11 Thread Tito
woohoo! congrats

nothing like seeing the data come through

On Monday, February 11, 2019 at 1:28:12 PM UTC-8, John Biddulph wrote:
>
> I made up that URL to get the towns!
>
> I just need to be able to update this URL in my pubs.service.ts file: 
> private _pubsintownurl = '
> http://www.mypubspace.com/pubsmobile/gettownpubs.php?rsTown=Worthing';
>
>
>
> On Monday, February 11, 2019 at 6:49:03 PM UTC, Tito wrote:
>>
>>
>>1. what happens when you call this endpoint from curl or postman tool?
>>Localhost:4200/?town=Brighton
>>2. you might want to also look at this sample project 
>>https://stackblitz.com/angular/mxkjlkldpgj
>>
>>
>> On Monday, February 11, 2019 at 10:04:00 AM UTC-8, John Biddulph wrote:
>>>
>>> Ok so Step 1
>>> I am now passing data into the query string as a parameter of town and 
>>> when I click on a different town, this changes
>>>
>>> Localhost:4200?town=Brighton
>>> Localhost:4200?town=Oxford
>>> Localhost:4200?town=Manchester
>>>
>>> Great! 
>>>
>>> STEP 2 
>>>
>>> I’m stuck, I need to be able to pass this into my pub.service.ts file so 
>>> I can change the URL of my JSON 
>>>
>>>
>>>
>>> On Mon, 11 Feb 2019 at 17:33, Tito  wrote:
>>>
>>>> so 1 step at a time. did your original issue get fixed? :)
>>>>
>>>>
>>>> On Monday, February 11, 2019 at 9:28:22 AM UTC-8, John Biddulph wrote:
>>>>>
>>>>> So I have the towns being passed into my query in my URL bar in my 
>>>>> browser but now I need to get this out into my services file but I put in 
>>>>> my PubComponent
>>>>>
>>>>> and here I have this code:
>>>>> this.router.queryParams.subscribe((data) => {
>>>>> this.selectedTown = data['town'];
>>>>> });
>>>>> and I am now getting the following error:
>>>>>
>>>>> AppComponent.html:3 ERROR TypeError: Cannot read property 'subscribe' 
>>>>> of undefined
>>>>> at new PubsComponent (pubs.component.ts:22)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Monday, February 11, 2019 at 3:26:59 PM UTC, John Biddulph wrote:
>>>>>>
>>>>>> I am following this tutorial: 
>>>>>> https://alligator.io/angular/query-parameters/
>>>>>>
>>>>>> here is my code: 
>>>>>> townClicked($event) {
>>>>>> this.router.navigate(['/pubs'], { queryParams: { town: $event } });
>>>>>> }
>>>>>>
>>>>>> and so I get the error
>>>>>>
>>>>>> Error: Uncaught (in promise): Error: Cannot match any routes. URL 
>>>>>> Segment: 'pubs'
>>>>>>
>>>>>>
>>>>>> and when I am trying to get the town that is clicked, here is my 
>>>>>> code: 
>>>>>> // tslint:disable-next-line:use-life-cycle-interface
>>>>>> ngOnInit() {
>>>>>> this.route.queryParams
>>>>>> .filter(params => params.town)
>>>>>> .subscribe(params => {
>>>>>> console.log(params); // {order: "popular"}
>>>>>>
>>>>>> this.selectedTown = params.town;
>>>>>> console.log(this.selectedTown); // popular
>>>>>> });
>>>>>> }
>>>>>>
>>>>> -- 
>>>> You received this message because you are subscribed to a topic in the 
>>>> Google Groups "Angular and AngularJS discussion" group.
>>>> To unsubscribe from this topic, visit 
>>>> https://groups.google.com/d/topic/angular/IKCTEjp6KlM/unsubscribe.
>>>> To unsubscribe from this group and all its topics, send an email to 
>>>> angular+u...@googlegroups.com.
>>>> To post to this group, send email to ang...@googlegroups.com.
>>>> Visit this group at https://groups.google.com/group/angular.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> -- 
>>> Sent from Gmail Mobile
>>>
>>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


Re: [AngularJS] Re: trying to pass data in params using router

2019-02-11 Thread Tito

   
   1. what happens when you call this endpoint from curl or postman tool?
   Localhost:4200/?town=Brighton
   2. you might want to also look at this sample project 
   https://stackblitz.com/angular/mxkjlkldpgj


On Monday, February 11, 2019 at 10:04:00 AM UTC-8, John Biddulph wrote:
>
> Ok so Step 1
> I am now passing data into the query string as a parameter of town and 
> when I click on a different town, this changes
>
> Localhost:4200?town=Brighton
> Localhost:4200?town=Oxford
> Localhost:4200?town=Manchester
>
> Great! 
>
> STEP 2 
>
> I’m stuck, I need to be able to pass this into my pub.service.ts file so I 
> can change the URL of my JSON 
>
>
>
> On Mon, 11 Feb 2019 at 17:33, Tito > wrote:
>
>> so 1 step at a time. did your original issue get fixed? :)
>>
>>
>> On Monday, February 11, 2019 at 9:28:22 AM UTC-8, John Biddulph wrote:
>>>
>>> So I have the towns being passed into my query in my URL bar in my 
>>> browser but now I need to get this out into my services file but I put in 
>>> my PubComponent
>>>
>>> and here I have this code:
>>> this.router.queryParams.subscribe((data) => {
>>> this.selectedTown = data['town'];
>>> });
>>> and I am now getting the following error:
>>>
>>> AppComponent.html:3 ERROR TypeError: Cannot read property 'subscribe' of 
>>> undefined
>>> at new PubsComponent (pubs.component.ts:22)
>>>
>>>
>>>
>>>
>>>
>>> On Monday, February 11, 2019 at 3:26:59 PM UTC, John Biddulph wrote:
>>>>
>>>> I am following this tutorial: 
>>>> https://alligator.io/angular/query-parameters/
>>>>
>>>> here is my code: 
>>>> townClicked($event) {
>>>> this.router.navigate(['/pubs'], { queryParams: { town: $event } });
>>>> }
>>>>
>>>> and so I get the error
>>>>
>>>> Error: Uncaught (in promise): Error: Cannot match any routes. URL 
>>>> Segment: 'pubs'
>>>>
>>>>
>>>> and when I am trying to get the town that is clicked, here is my code: 
>>>> // tslint:disable-next-line:use-life-cycle-interface
>>>> ngOnInit() {
>>>> this.route.queryParams
>>>> .filter(params => params.town)
>>>> .subscribe(params => {
>>>> console.log(params); // {order: "popular"}
>>>>
>>>> this.selectedTown = params.town;
>>>> console.log(this.selectedTown); // popular
>>>> });
>>>> }
>>>>
>>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Angular and AngularJS discussion" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/angular/IKCTEjp6KlM/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> angular+u...@googlegroups.com .
>> To post to this group, send email to ang...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
> Sent from Gmail Mobile
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: trying to pass data in params using router

2019-02-11 Thread Tito
so 1 step at a time. did your original issue get fixed? :)

On Monday, February 11, 2019 at 9:28:22 AM UTC-8, John Biddulph wrote:
>
> So I have the towns being passed into my query in my URL bar in my browser 
> but now I need to get this out into my services file but I put in my 
> PubComponent
>
> and here I have this code:
> this.router.queryParams.subscribe((data) => {
> this.selectedTown = data['town'];
> });
> and I am now getting the following error:
>
> AppComponent.html:3 ERROR TypeError: Cannot read property 'subscribe' of 
> undefined
> at new PubsComponent (pubs.component.ts:22)
>
>
>
>
>
> On Monday, February 11, 2019 at 3:26:59 PM UTC, John Biddulph wrote:
>>
>> I am following this tutorial: 
>> https://alligator.io/angular/query-parameters/
>>
>> here is my code: 
>> townClicked($event) {
>> this.router.navigate(['/pubs'], { queryParams: { town: $event } });
>> }
>>
>> and so I get the error
>>
>> Error: Uncaught (in promise): Error: Cannot match any routes. URL 
>> Segment: 'pubs'
>>
>>
>> and when I am trying to get the town that is clicked, here is my code: 
>> // tslint:disable-next-line:use-life-cycle-interface
>> ngOnInit() {
>> this.route.queryParams
>> .filter(params => params.town)
>> .subscribe(params => {
>> console.log(params); // {order: "popular"}
>>
>> this.selectedTown = params.town;
>> console.log(this.selectedTown); // popular
>> });
>> }
>>
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: trying to pass data in params using router

2019-02-11 Thread Tito
have you declared your routes? You are asking to go to this towns route but 
there is no exit sign ;)

const routes: Routes = [
{
path: '',
component: DashboardComponent,
},
];


On Monday, February 11, 2019 at 7:26:59 AM UTC-8, John Biddulph wrote:
>
> I am following this tutorial: 
> https://alligator.io/angular/query-parameters/
>
> here is my code: 
> townClicked($event) {
> this.router.navigate(['/pubs'], { queryParams: { town: $event } });
> }
>
> and so I get the error
>
> Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 
> 'pubs'
>
>
> and when I am trying to get the town that is clicked, here is my code: 
> // tslint:disable-next-line:use-life-cycle-interface
> ngOnInit() {
> this.route.queryParams
> .filter(params => params.town)
> .subscribe(params => {
> console.log(params); // {order: "popular"}
>
> this.selectedTown = params.town;
> console.log(this.selectedTown); // popular
> });
> }
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: ui-grid: single click on "focused" cell does not cause it to enter edit mode

2019-02-08 Thread Tito
this is what I tried but it is not working for me, maybe it might work for 
you?

http://ui-grid.info/docs/#!/tutorial/Tutorial:%20309%20Edit%20Feature%20With%20Cellnav

On Thursday, October 22, 2015 at 12:56:33 PM UTC-7, Nick Carter wrote:
>
> Does anyone know a way of configuring - or hacking through event-driven 
> programmatic control of the grid - ui-grid so that a single click on a 
> "focused" cell switches to editable input mode?
>
> For clarity, "focus" here does not refer to an html input, but the cellNav 
> functionality in ui-grid, which renders the currently "focused" cell 
> contents with "ui-grid-cell-focus" class.
>
> I've trolled/trawled documentation as well as ui-grid source in hopes of 
> finding a fix (including programmatically "clearing" the "focus", thus 
> hopefully allowing a single click to bring it back to edit mode) with no 
> great confidence in a fix thus far.
>
> Thanks!
>
> (Stack Overflow is being a bastard right now and not letting me post 
> despite not posting anything in forever...)
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] ui-grid: single click on "focused" cell does not cause it to enter edit mode

2019-02-08 Thread Tito
Ui-grid is so rich it can be dizzying 
Been working on a form the last 2 weeks and I am happy to help
Are you looking for cell level focus or row level focus?

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Getting Authentication Password in AngularJS application

2019-02-07 Thread Tito
which user are you using for the api? the person logged in or a service 
account that makes the data connection?

On Wednesday, February 6, 2019 at 7:49:55 PM UTC-8, raja.k...@gmail.com 
wrote:
>
>
> I am facing a wierd problem... 
> I am working on  angularjs 1.x application. It works on windows 
> authentication. It was working fine . 
>
> There is requirement to call Web API with BASIC authentication. Once after 
> implementation, the page loaded with data fine. but when navigating to next 
> page ($location.path..) the application pops up for User Name & Password..
> Full Authentication is given for folder 
> I couldn't  figure out how that is related. Could any one  please help me 
> on this ... 
>
> Thanks.
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] xeditable form buttons issue

2019-02-06 Thread Tito
Greetings,

Please see this fiddle 

http://jsfiddle.net/ckosloski/NfPcH/19059/

When I use that same exact code (it is working partially) my form defaults to 
edit form.
So what I see when I land on the page is edit/del button and all rows of my 
form in editable format.

How can make it default to non edit state?

Thank you,

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Post to multiple tables using Angular 7

2019-01-30 Thread Tito
or use stored procedures that will take care of that for you if you are on 
Microsoft SQL Server

On Tuesday, January 29, 2019 at 10:55:35 PM UTC-8, Ronald Rex wrote:
>
>
> Hi Friends,
>
> I am using AspNetCore for my Restful api to post data. But I was wondering 
> how do you post to multiple tables using httpclient service ? Thanks !
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Read CSV File

2019-01-19 Thread Tito
Your second split(.) is
Not looking for a comma
As Sanders showed you use a comma

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Alternative to Datatable jquery

2019-01-19 Thread Tito
been looking at these two not sure if this is what you are looking for

https://www.ag-grid.com/features-overview/

http://ui-grid.info/



On Saturday, January 19, 2019 at 7:34:32 AM UTC-8, Komal Shah wrote:
>
> Hi we are currently using jquery datatables server side pagination aith a 
> drilldown feature.
> Do we have any alternative to datatable in ionic
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Little problem with NgFor

2019-01-17 Thread Tito
you are using javascript's index here


Some good reads here 
https://angular.io/api/common/NgForOf

On Thursday, January 17, 2019 at 11:12:11 AM UTC-8, Ben Ysil wrote:
>
>
> Yes but I never used index position. Just Ngfor on an array . So why it's 
> a get a first item blank ? blank item didn't exist in the array.
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


Re: [AngularJS] Re: [Angular] how can I access to a local JSON file

2019-01-11 Thread Tito
ce que veux te dire c'est que si demain tu voudrais utilizer le data dans 
ce json d'un autre site, cette architecture est trop frgile :)

On Friday, January 11, 2019 at 10:37:42 AM UTC-8, Bakadiri Abdelouahab 
wrote:
>
> So I must put my file in a asset folder. It’s work now thank you so much.
>
> Le ven. 11 jan. 2019 à 02:38, Tito > a 
> écrit :
>
>> I saw this on SO
>>
>> import { HttpClient } from '@angular/common/http'; import { Observable } 
>> from 'rxjs/Observable';
>>
>>constructor(private http: HttpClient) {
>> this.getJSON().subscribe(data => {
>> console.log(data)
>> });
>> }
>>
>> public getJSON(): Observable {
>> return this.http.get("./assets/mydata.json")
>> }
>>
>>
>> On Thursday, January 10, 2019 at 10:50:14 AM UTC-8, Bakadiri Abdelouahab 
>> wrote:
>>>
>>> Hello;
>>> I have a local JSON file that conient a list of products, I want to 
>>> access to it using a HTTP service through a get function, my class service 
>>> and the json file are in the same folder, when i put: 
>>> getProducts(): Observable {
>>> return this._http.get('./products.json');
>>> }
>>> I have a error like this:
>>>  GET http://localhost:4200/products.json 404 (Not Found)
>>> Do you have any idea about where angular put this file while it build my 
>>> application.
>>> thank you.
>>>
>> -- 
>> 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+u...@googlegroups.com .
>> To post to this group, send email to ang...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
> Envoyer depuis mon Iphone
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


Re: [AngularJS] Re: [Angular] how can I access to a local JSON file

2019-01-11 Thread Tito
question for you, why not have this data in a backend like a database, 
mongodb etc? then let us say another 
instance of your same website or yet another totally different website 
needs to read the data, wouldnt it be better
to have this reside on a database that can be accessed by both websites via 
a service?

On Friday, January 11, 2019 at 10:37:42 AM UTC-8, Bakadiri Abdelouahab 
wrote:
>
> So I must put my file in a asset folder. It’s work now thank you so much.
>
> Le ven. 11 jan. 2019 à 02:38, Tito > a 
> écrit :
>
>> I saw this on SO
>>
>> import { HttpClient } from '@angular/common/http'; import { Observable } 
>> from 'rxjs/Observable';
>>
>>constructor(private http: HttpClient) {
>> this.getJSON().subscribe(data => {
>> console.log(data)
>> });
>> }
>>
>> public getJSON(): Observable {
>> return this.http.get("./assets/mydata.json")
>> }
>>
>>
>> On Thursday, January 10, 2019 at 10:50:14 AM UTC-8, Bakadiri Abdelouahab 
>> wrote:
>>>
>>> Hello;
>>> I have a local JSON file that conient a list of products, I want to 
>>> access to it using a HTTP service through a get function, my class service 
>>> and the json file are in the same folder, when i put: 
>>> getProducts(): Observable {
>>> return this._http.get('./products.json');
>>> }
>>> I have a error like this:
>>>  GET http://localhost:4200/products.json 404 (Not Found)
>>> Do you have any idea about where angular put this file while it build my 
>>> application.
>>> thank you.
>>>
>> -- 
>> 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+u...@googlegroups.com .
>> To post to this group, send email to ang...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
> Envoyer depuis mon Iphone
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: [Angular] how can I access to a local JSON file

2019-01-10 Thread Tito
I saw this on SO

import { HttpClient } from '@angular/common/http'; import { Observable } from 
'rxjs/Observable';

   constructor(private http: HttpClient) {
this.getJSON().subscribe(data => {
console.log(data)
});
}

public getJSON(): Observable {
return this.http.get("./assets/mydata.json")
}


On Thursday, January 10, 2019 at 10:50:14 AM UTC-8, Bakadiri Abdelouahab 
wrote:
>
> Hello;
> I have a local JSON file that conient a list of products, I want to access 
> to it using a HTTP service through a get function, my class service and the 
> json file are in the same folder, when i put: 
> getProducts(): Observable {
> return this._http.get('./products.json');
> }
> I have a error like this:
>  GET http://localhost:4200/products.json 404 (Not Found)
> Do you have any idea about where angular put this file while it build my 
> application.
> thank you.
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: grid for AngularJS

2019-01-09 Thread Tito
Ok thanks much. Wonder if it has chick row level event?

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: how to bind data in UI grid??

2019-01-09 Thread Tito
I was working on this just today, I did it the following way, hope it helps

var vm = this;

vm.departments = [];
getDepartments();

vm.gridOptions = {
data: "vm.departments",

...//other config options
}

vm.getDepartments = getDepartments;

function getDepartments() {
return dataservice.getDepartments().then(function (data) {
vm.departments = data;
return vm.departments;
}); 
} 

On Sunday, September 23, 2018 at 3:56:33 AM UTC-7, jaffer sadiq wrote:
>
> Hi,
>
> I need to pass value in UI grid footer. I tried but didnt worl.
>
>  $scope.gridOptions = {
>
>  
> data: 'SearchGridData',
> paginationPageSizes: [50],
> enableSorting: true,
> paginationPageSize: 50,
> useExternalPagination: true,
> showGridFooter: true,
>
> gridFooterTemplate: ' style="text-align: center" > Total Amount : 
> {{ResponseData.Amount}} ',
>
>   //  gridFooterTemplate: ' style="text-align: center" >  Total Amount : "' + $scope.TotalGridAmount + 
> '" ',
> columnDefs: [
>
> {
> field: "TransactionID", width: 120},
> { field: "Date", width: 120 },
> { field: "OrderID", width: 120 },
> { field: "OrderName", width: 120 },
> { field: "Amount", width: 120 }],
> onRegisterApi: function(gridApi) {
> $scope.gridApi = gridApi;
> gridApi.pagination.on.paginationChanged($scope, function 
> (newPage, pageSize) {
> paginationOptions.pageNumber = newPage;
> paginationOptions.pageSize = pageSize;
> $scope.DivprocessingMsg = true;
> transactionData();
> });
> }
> };
>
> * Responsedata.Amount is the value which is getting from database.
>
> if any one helps, it would be greatful
>
> Thanks
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] grid for AngularJS

2019-01-09 Thread Tito
Greetings,

What have you found to be the best free grid for AngularJS. I started using 
this http://ui-grid.info/ but does not seem to enable
row level click event.

Thanks

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Multiple Custom element developed in angular element

2019-01-09 Thread Tito
What if you deleted package-lock.json
Delete node_modules and do

Npm ci

Read a few places this might resolve issue

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


Re: [AngularJS] Re: Angular 7 Logging Service

2019-01-07 Thread Tito
It is not really angular 7 logging service. I think most accurate description 
is angular 7 that makes use logging service api

Pretty much any version of angular can consume any service. But that said, if 
you want a logging service it is just a matter of implementing it on you actual 
rest api service either to log to log files on disk or to a backend

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


Re: [AngularJS] Re: Angular 7 Logging Service

2019-01-05 Thread Tito
Agreed. Not from angular but the service feeding the fe

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Angular 7 Logging Service

2019-01-05 Thread Tito
Did winston work for you?

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Personal email

2019-01-05 Thread Tito
ok looks like it was a setting on this forum I had to change. thank you

On Friday, January 4, 2019 at 10:44:49 PM UTC-8, Sander Elias wrote:
>
> Hi Tito,
>
> You can't see or extract your personal email. (unless it exposed somewhere 
> in a message)
> However, you can "reply privately to the author". That way it ends up in 
> your email. If you then respond to that mail, you are handing it out.
>
> 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 group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Personal email

2019-01-04 Thread Tito
Any idea why people are able to see my personal email in this forum and are 
sending me emails directly

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Angular 7 Logging Service

2019-01-04 Thread Tito
You could try to leverage 

https://www.npmjs.com/package/winston


On Friday, January 4, 2019 at 3:12:56 AM UTC-8, Suresh Kumar wrote:
>
> Hi Team,
>
> Can you please provide your useful information regarding Logger 
> Implementation on Angular (Tomcat Server)?
>
> Waiting for your response.
>
>
>
> Thanks
> Suresh
>
> On Fri, Jan 4, 2019 at 11:40 AM Suresh Kumar  > wrote:
>
>> Hi Team,
>>
>> Good Morning.
>>
>> I have deployed Angular Application on Tomcat Server (CentOS).
>>
>> I want to implement a logging service.
>>
>> TRACE|DEBUG|INFO|LOG|WARN|ERROR|FATAL  
>>
>> Can you please let me know how to implement logging service using angular 
>> 7 on Windows and Linux Environment.?
>>
>> Thanks & Regards,
>> Suresh Kumar M
>>
>>
>>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: use array from server as part of parameters in the submit search

2019-01-03 Thread Tito
Could you post the sample of data you want to pass as parameter?


On Thursday, January 3, 2019 at 9:00:33 AM UTC-8, jason...@gmail.com wrote:
>
> I am having trouble using an array I get from api in the parameters of a 
> submit to do a search that populates a table. User is going to login and go 
> to a screen where the user will have accounts and contracts already 
> assigned to him/her so from the server I will get this based on userid. In 
> that page, the user will put in more search criteria that will populate a 
> table let's just say a date range. 
>
> Parameters:
> Start and End Date (from page)
> Accounts (from api)
> Contracts (from api)
>
> I see the api call getting the accounts and contracts in developer tools 
> network. My problem is passing that as a parameter in the submit. I get the 
> results from the api in ngOnInit.
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


Re: [AngularJS] Re: Data to json array

2018-12-23 Thread Tito
https://github.com/yosiasz/express.mssql.api/blob/master/routes/virtualmachines/index.js

Check this out

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Data to json array

2018-12-22 Thread Tito
what rest api are you using?

On Saturday, December 22, 2018 at 6:50:02 PM UTC-8, Katheeja Beevi wrote:
>
> How to convert queried data into json array in rest api?
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Angular 1.x Directive Classes and Webpack

2018-12-17 Thread Tito
from https://docs.angularjs.org/guide/directive, maybe this will give you a 
*hint 
on how to resolve*

.directive('optionsDirective',function(){

return {
restrict: 'E', 
scope: {
option: '=ngModel'
},
link: function (scope, element, attributes) {
var option = scope.option;
option.selected = option.selected || [];
var template = optionsDirective.parseOption(option);
scope.addItem = optionsDirective.addItem;
element.append($compile(template)(scope));
}
};
function parseOption(option) {
if (angular.equals(option.min_count, 1) && angular.equals(option.max_count, 
1)) {
return '';
} else {
return '';
}
}
function addItem(option, item) {
var index = option.selected.indexOf(item.id);
if (angular.equals(index, -1)) {
if (angular.equals(option.max_count, 1)) {
option.selected = [item.id];
} else {
option.selected.push(item.id)
}
} else {
option.selected.splice(index, 1);
}
}
function directiveFactory($compile){
optionsDirective.instance = new optionsDirective($compile);
return optionsDirective.instance;
} 
})




On Monday, December 17, 2018 at 12:12:11 PM UTC-8, sc...@ser.vi wrote:
>
> I am having an issue with a directive in my code and am hoping someone can 
> point me in the right direction.  The directive works OK when viewed in a 
> Web browser like Chrome or Firefox.  When I try to view the same app within 
> Cordova's In-App Browser, the directive throws an error.   
>
> I have tracked the issue down to the format of the file itself.  The error 
> I get is "Uncaught SyntaxError:  does not like the reserved word "class" within the directive.   In reading 
> up on the issue, it points to possibly converting the class to ES6 format?  
>  
>
> So I guess my question how to update the following directive so that it 
> works properly with Webpack?
>
> class optionsDirective {
> constructor ($compile) {
> return {
> restrict: 'E',   
> scope: {
> option: '=ngModel'
> },
> link: function (scope, element, attributes) {
> var option = scope.option;
> option.selected = option.selected || [];
> var template = optionsDirective.parseOption(option);
> scope.addItem = optionsDirective.addItem;
> element.append($compile(template)(scope));
> }
> };
> }
>
>
> static parseOption(option) {
> if (angular.equals(option.min_count, 1) && angular.equals(option.
> max_count, 1)) {
> return ' src="\'components/options/bulletOptions.html\'"/>';
> } else {
> return ' src="\'components/options/checkboxOptions.html\'"/>';
> }
> }
>
>
> static addItem(option, item) {
> var index = option.selected.indexOf(item.id);
> if (angular.equals(index, -1)) {
> if (angular.equals(option.max_count, 1)) {
> option.selected = [item.id];
> } else {
> option.selected.push(item.id)
> }
> } else {
> option.selected.splice(index, 1);
> }
> }
>
>
> static directiveFactory($compile){
> optionsDirective.instance = new optionsDirective($compile);
> return optionsDirective.instance;
> }
> }
>
>
> optionsDirective.directiveFactory.$inject = ['$compile'];
>
>
> export default angular
> .module('app.directives.options', [])
> .directive('optionsDirective', optionsDirective.directiveFactory)
> .name;
>
>
> Thanks in advance for any assistance.
>
>
>
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


Re: [AngularJS] How can I keep the same number page and size of page when I refresh the table in angularjs datatable?

2018-12-16 Thread Tito
Please see my questions and answer these first

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


Re: [AngularJS] How can I keep the same number page and size of page when I refresh the table in angularjs datatable?

2018-12-16 Thread Tito
What do you have so far? Do you have a skeleton of an angular cli or angularjs 
app built?

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


Re: [AngularJS] How can I keep the same number page and size of page when I refresh the table in angularjs datatable?

2018-12-15 Thread Tito
What kind of db
You will need to create an api that gets data from your db

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: mssql module with angular/cli

2018-12-15 Thread Tito
Ok, of course!

THANKS

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] mssql module with angular/cli

2018-12-14 Thread Tito
Greetings

Trying to write a DataService in angular/cli but I seem to be running into some 
issues with mssql module.
I posted a question here also

https://github.com/tediousjs/node-mssql/issues/767

Any idea?

Thanks!

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: How to integrate a working typeorm project into an Angular 7 project

2018-12-14 Thread Tito
https://github.com/yosiasz/express.mssql.api

So the app I built is designed for 
In house use for functional managers
To do yearly budgeting.

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: How to integrate a working typeorm project into an Angular 7 project

2018-12-14 Thread Tito
I created a github repo for you here
0 
yosiasz/express.mssql.api

Please take a look and let me
Know any question you will have.
This api is super lighweight.

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: How to integrate a working typeorm project into an Angular 7 project

2018-12-13 Thread Tito

>
> module.exports = function(app) {
>> const sql = require('mssql'),
>> js2xmlparser = require("js2xmlparser");
>> var express = require( "express" )
>> , router = express.Router()
>>
>> var api = '/api/';
>> var four0four = require('../../utils/404')();
>>
>
router.get(api + 'virtualmachines', getVirtualMachines);
>>
>

.
function getVirtualMachines(req, res, next) {
for (var key in req.body) {
if(req.body[key] === '' ) {
req.body[key] = null;
}
}
var vmname = req.body.vmname;
var ipaddress = req.body.ipaddress;
var vmowner = req.body.vmowner;
const pool2 = new sql.ConnectionPool(config, err => {
if (err) console.log(err)
// ... error checks
pool2.on('error', err => {
console.log('ConnectionPool', err);
})
// Stored Procedure
pool2.request() // or: new sql.Request(pool2)
.input('vmname', sql.VarChar(50), vmname)
.input('ipaddress', sql.VarChar(50), ipaddress)
.input('vmowner', sql.VarChar(50), vmowner)
.execute('dbo.virtualmachines_sp', (err, result) => {
// ... error checks
console.log('ConnectionPool', err);
//console.dir(result)
res.send(result.recordsets[0])
})
})
} 

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: How to integrate a working typeorm project into an Angular 7 project

2018-12-13 Thread Tito
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';


@Injectable({
providedIn: 'root'
})
export class DataService {
constructor(private http: HttpClient) { }
getVirtualMachines() {
return this.http.get('http://localhost:8080/api/virtualmachines')
}

getUsers() {
return this.http.get('https://jsonplaceholder.typicode.com/users')
} 
}

On Thursday, December 13, 2018 at 9:08:59 AM UTC-8, Tito wrote:
>
> If you are not able to resolve this issue I recommend the following 
> working solution using another module. App I am developing consumes data 
> from an api service that uses mssql npm package . It works wonderfully with 
> Ms sql server.
>
> Then from within my angular 7 app DataService.ts, I make a call to the 
> endpoint http://ip.address:8081/api/virtual machines to fetch data to 
> display on client side.
>
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] How to integrate a working typeorm project into an Angular 7 project

2018-12-13 Thread Tito
If you are not able to resolve this issue I recommend the following working 
solution using another module. App I am developing consumes data from an api 
service that uses mssql npm package . It works wonderfully with Ms sql server.

Then from within my angular 7 app DataService.ts, I make a call to the endpoint 
http://ip.address:8081/api/virtual machines to fetch data to display on client 
side.

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


Re: [AngularJS] Re: Service Issue - Not a Singleton?

2018-12-10 Thread Tito
are you doing any sort of aching?

On Monday, December 10, 2018 at 6:41:50 PM UTC-8, Scott L wrote:
>
> So, I was able to resolve the issue by deleting the service and the just 
> re-creating it with the same name as the previous service. Not really sure 
> what happened, but decided to try it as any additional services I was 
> adding were Singletons and would display the correct boolean value. 
>
> Thanks for the assistance.
>
> On Mon, Dec 10, 2018 at 9:46 AM Sander Elias  > wrote:
>
>> Scott, 
>>
>> Yes, I was referring to the provider arrays in modules/services or 
>> components. 
>> If you can showcase your issue in a StackBlitz 
>>  I can surely help you. 
>> When you can't get that to fly, truncated code here might help.
>>
>> Regards
>> Sander
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Angular and AngularJS discussion" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/angular/HmHBWjhux-o/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> angular+u...@googlegroups.com .
>> To post to this group, send email to ang...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] angular test best practice

2018-12-10 Thread Tito
hello

any good reads, insights, tutorials on angular testing?

Thanks!

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Does not work: npm -v, Does not work: npm install -g @ angular / cli, work node -v and ng -v

2018-12-09 Thread Tito
npm install -g @angular/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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] How to render columns of this primeng table based on the user logged in ?

2018-12-08 Thread Tito
What and Where is the data store?

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] AngularJs migrate or write new

2018-12-04 Thread Tito
I never ever thought I would be a web dev using angular. Never in my wildest 
dreams would I have thought my angularjs apps would be such a huge hit at 
company O was hired 2 years ago.
I wrote a budget planning tool and now they want to fully adopt v2.0
Should I rewrite from zero or migrate what I have

THANKS

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


Re: [AngularJS] Angular 6 User Listing

2018-12-04 Thread Tito
Show us your code that PUTs the data in user list please?

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Angular 6 User Listing

2018-12-04 Thread Tito
Are you using an app you wrote yourself or from a tutorial

-- 
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 angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   4   >