Re: [AngularJS] why super() call is not done by default while extending

2018-10-29 Thread mahesh reddy
Can any body tell me how to add/delete rows dynamically in nested ng repeat
arrays using anjualrjs
 since 1 month onwards i am facing problem in this issue.
Appreciatable if anybody help me to solve this issue.

On Tue, Oct 30, 2018 at 11:24 AM  wrote:

> Hi All,
>
> I have been wondering why Angular doesn't take care of making super() call
> a default thing when a class is extending another. Why do we have to write
> it when we know its necessary.
>
> I don't see any reason behind as it has to be called so that the parent
> constructor gets called.
>
> I am not a lazy developer, just that it would be great to know if there is
> any interesting reason behind.
>
> Thanks in advance.
>
> Kind regards,
> Jeet Adhikari
>
> --
> 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.
>

-- 
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] why super() call is not done by default while extending

2018-10-29 Thread jeet . adhikari92
Hi All,

I have been wondering why Angular doesn't take care of making super() call 
a default thing when a class is extending another. Why do we have to write 
it when we know its necessary.

I don't see any reason behind as it has to be called so that the parent 
constructor gets called. 

I am not a lazy developer, just that it would be great to know if there is 
any interesting reason behind.

Thanks in advance.

Kind regards,
Jeet Adhikari

-- 
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: Unable to create Production Build

2018-10-29 Thread Partha Majumdar
Dear Sir/Madam,

I need to create the Production Build and not the Development Build.

Please help.

Thanks and Regards,
Partha

On Tuesday, 30 October 2018 09:54:16 UTC+5:30, Partha Majumdar wrote:
>
> Dear Sir/Madam,
>
> I had a perfectly running Application developed suing Angular 6.
>
> I upgraded to Angular 7. The whole application was destroyed. It took 4 
> days to restore the application. Now, I can build the application in 
> development mode and it works.
>
> I am trying to make the production build. However, I get the following 
> error.
>
> Please help so that I can create the development build.
>
> Regards,
> Partha
>
> Command: ng build --prod --aot
>
> Output:
> The /Users/parthamajumdar/Documents/Solutions/Paikari/pConfMan-v1/src/
> undefined path in file replacements does not exist.
> Error: The /Users/parthamajumdar/Documents/Solutions/Paikari/pConfMan-v1/
> src/undefined pathin file replacements does not exist.
> at TapSubscriber.operators_1.tap [as _tapNext] (/Users/parthamajumdar/
> Documents/Solutions/Paikari/pConfMan-v1/node_modules/@angular-devkit/build
> -angular/src/utils/normalize-file-replacements.js:26:19)
> at TapSubscriber._next (/Users/parthamajumdar/Documents/Solutions/
> Paikari/pConfMan-v1/node_modules/rxjs/internal/operators/tap.js:59:27)
> at TapSubscriber.Subscriber.next (/Users/parthamajumdar/Documents/
> Solutions/Paikari/pConfMan-v1/node_modules/rxjs/internal/Subscriber.js:67:
> 18)
> at SafeSubscriber.__tryOrUnsub (/Users/parthamajumdar/Documents/
> Solutions/Paikari/pConfMan-v1/node_modules/@angular-devkit/core/
> node_modules/rxjs/internal/Subscriber.js:209:16)
> at SafeSubscriber.next (/Users/parthamajumdar/Documents/Solutions/
> Paikari/pConfMan-v1/node_modules/@angular-devkit/core/node_modules/rxjs/
> internal/Subscriber.js:147:22)
> at Subscriber._next (/Users/parthamajumdar/Documents/Solutions/Paikari
> /pConfMan-v1/node_modules/@angular-devkit/core/node_modules/rxjs/internal/
> Subscriber.js:90:26)
> at Subscriber.next (/Users/parthamajumdar/Documents/Solutions/Paikari/
> pConfMan-v1/node_modules/@angular-devkit/core/node_modules/rxjs/internal/
> Subscriber.js:67:18)
> at Observable.rxjs_1.Observable.obs [as _subscribe] (/Users/
> parthamajumdar/Documents/Solutions/Paikari/pConfMan-v1/node_modules/
> @angular-devkit/core/node/host.js:241:21)
> at Observable._trySubscribe (/Users/parthamajumdar/Documents/Solutions
> /Paikari/pConfMan-v1/node_modules/@angular-devkit/core/node_modules/rxjs/
> internal/Observable.js:44:25)
> at Observable.subscribe (/Users/parthamajumdar/Documents/Solutions/
> Paikari/pConfMan-v1/node_modules/@angular-devkit/core/node_modules/rxjs/
> internal/Observable.js:30:22)
> at DoOperator.call (/Users/parthamajumdar/Documents/Solutions/Paikari/
> pConfMan-v1/node_modules/rxjs/internal/operators/tap.js:32:23)
> at Observable.subscribe (/Users/parthamajumdar/Documents/Solutions/
> Paikari/pConfMan-v1/node_modules/@angular-devkit/core/node_modules/rxjs/
> internal/Observable.js:25:22)
> at /Users/parthamajumdar/Documents/Solutions/Paikari/pConfMan-v1/
> node_modules/rxjs/internal/util/subscribeToObservable.js:10:20
> at Object.subscribeToResult (/Users/parthamajumdar/Documents/Solutions
> /Paikari/pConfMan-v1/node_modules/rxjs/internal/util/subscribeToResult.js:
> 10:45)
> at MergeMapSubscriber._innerSub (/Users/parthamajumdar/Documents/
> Solutions/Paikari/pConfMan-v1/node_modules/rxjs/internal/operators/
> mergeMap.js:82:29)
> at MergeMapSubscriber._tryNext (/Users/parthamajumdar/Documents/
> Solutions/Paikari/pConfMan-v1/node_modules/rxjs/internal/operators/
> mergeMap.js:76:14)
>
>

-- 
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] Unable to create Production Build

2018-10-29 Thread Partha Majumdar
Dear Sir/Madam,

I had a perfectly running Application developed suing Angular 6.

I upgraded to Angular 7. The whole application was destroyed. It took 4 
days to restore the application. Now, I can build the application in 
development mode and it works.

I am trying to make the production build. However, I get the following 
error.

Please help so that I can create the development build.

Regards,
Partha

Command: ng build --prod --aot

Output:
The /Users/parthamajumdar/Documents/Solutions/Paikari/pConfMan-v1/src/
undefined path in file replacements does not exist.
Error: The /Users/parthamajumdar/Documents/Solutions/Paikari/pConfMan-v1/src
/undefined pathin file replacements does not exist.
at TapSubscriber.operators_1.tap [as _tapNext] (/Users/parthamajumdar/
Documents/Solutions/Paikari/pConfMan-v1/node_modules/@angular-devkit/build-
angular/src/utils/normalize-file-replacements.js:26:19)
at TapSubscriber._next (/Users/parthamajumdar/Documents/Solutions/
Paikari/pConfMan-v1/node_modules/rxjs/internal/operators/tap.js:59:27)
at TapSubscriber.Subscriber.next (/Users/parthamajumdar/Documents/
Solutions/Paikari/pConfMan-v1/node_modules/rxjs/internal/Subscriber.js:67:18
)
at SafeSubscriber.__tryOrUnsub (/Users/parthamajumdar/Documents/
Solutions/Paikari/pConfMan-v1/node_modules/@angular-devkit/core/node_modules
/rxjs/internal/Subscriber.js:209:16)
at SafeSubscriber.next (/Users/parthamajumdar/Documents/Solutions/
Paikari/pConfMan-v1/node_modules/@angular-devkit/core/node_modules/rxjs/
internal/Subscriber.js:147:22)
at Subscriber._next (/Users/parthamajumdar/Documents/Solutions/Paikari/
pConfMan-v1/node_modules/@angular-devkit/core/node_modules/rxjs/internal/
Subscriber.js:90:26)
at Subscriber.next (/Users/parthamajumdar/Documents/Solutions/Paikari/
pConfMan-v1/node_modules/@angular-devkit/core/node_modules/rxjs/internal/
Subscriber.js:67:18)
at Observable.rxjs_1.Observable.obs [as _subscribe] (/Users/
parthamajumdar/Documents/Solutions/Paikari/pConfMan-v1/node_modules/@angular
-devkit/core/node/host.js:241:21)
at Observable._trySubscribe (/Users/parthamajumdar/Documents/Solutions/
Paikari/pConfMan-v1/node_modules/@angular-devkit/core/node_modules/rxjs/
internal/Observable.js:44:25)
at Observable.subscribe (/Users/parthamajumdar/Documents/Solutions/
Paikari/pConfMan-v1/node_modules/@angular-devkit/core/node_modules/rxjs/
internal/Observable.js:30:22)
at DoOperator.call (/Users/parthamajumdar/Documents/Solutions/Paikari/
pConfMan-v1/node_modules/rxjs/internal/operators/tap.js:32:23)
at Observable.subscribe (/Users/parthamajumdar/Documents/Solutions/
Paikari/pConfMan-v1/node_modules/@angular-devkit/core/node_modules/rxjs/
internal/Observable.js:25:22)
at /Users/parthamajumdar/Documents/Solutions/Paikari/pConfMan-v1/
node_modules/rxjs/internal/util/subscribeToObservable.js:10:20
at Object.subscribeToResult (/Users/parthamajumdar/Documents/Solutions/
Paikari/pConfMan-v1/node_modules/rxjs/internal/util/subscribeToResult.js:10:
45)
at MergeMapSubscriber._innerSub (/Users/parthamajumdar/Documents/
Solutions/Paikari/pConfMan-v1/node_modules/rxjs/internal/operators/mergeMap.
js:82:29)
at MergeMapSubscriber._tryNext (/Users/parthamajumdar/Documents/
Solutions/Paikari/pConfMan-v1/node_modules/rxjs/internal/operators/mergeMap.
js:76:14)

-- 
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 JS loading slowly in Firefox

2018-10-29 Thread dsreekum
My Angular JS app is loading slowly on Firefox browser. As a result of 
this, some of the hidden elements are showing up on the page during page 
load before getting hidden again. I am using AngularJS material also. I 
tried moving the script tags to the head. This is fixing the issue in 
Firefox but in Chrome it is loading slowly. Any suggestions on how to fix 
this?
down votefavorMy Angular JS app is loading slowly on Firefox browser. As a 
result of this, some of the hidden elements are showing up on the page 
during page load before getting hidden again. I am using AngularJS material 
also. I tried moving the script tags to the head. This is fixing the issue 
in Firefox but in Chrome it is loading slowly. Any suggestions on how to 
fix this? 

favoritMy Angular JS app is loading slowly on Firefox browser. As a result 
of this, some of the hidden elements are showing up on the page during page 
load before getting hidden again. I am using AngularJS material also. I 
tried moving the script tags to the head. This is fixing the issue in 
Firefox but in Chrome it is loading slowly. Any suggestions on how to fix 
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 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: CSS styling of AngularJS md-autocomplete

2018-10-29 Thread Deepa Sreekumar
Thank you so much for the suggestion. I was able to fix the issue

On Sun, Oct 28, 2018, 23:26 Sander Elias  wrote:

> I understood that.
> however what I meant was, how are you using it? Inside a component? you
> can use your components CSS to replace any formatting that's in there.
> open up dev-tools check what selectors are needed and amend them to what
> you want.
> You can even read out the class names in the dev-tools and reuse those to
> make it easier.
>
> 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.
>

-- 
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: Lost and Stolen usecase

2018-10-29 Thread Sander Elias
Hi Rohini.

To do what? Click through them? I think <1 second.

To build? depends on demands, and the backend that comes with this. I would 
say total between 2 days and a year.
The blank screens probably a bit faster ;)

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: How to implement multifactor authentication

2018-10-29 Thread Raghu Ram
Hi,

Thanks for that. I will try.

-- 
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 implement multifactor authentication

2018-10-29 Thread Sander Elias
https://justinmayer.com/posts/custom-2fa-apps-are-bad/

-- 
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 implement multifactor authentication

2018-10-29 Thread Sander Elias
Hi Raghu,

Unless you are a security expert, I would recommend using a 3rth party that 
takes care of this.
Auth0 has an excellent service for this. There are more providers that can 
offer this though.

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: how to query array of formgroup in angular 5

2018-10-29 Thread Sander Elias
Hi Jula,

It's an array. so Any way you can iterate an array will do.

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] how to query array of formgroup in angular 5

2018-10-29 Thread jula rao
I want to know how to iterate on  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.


[AngularJS] How to implement multifactor authentication

2018-10-29 Thread Raghu Ram
Hi All,

Please tell me how to implement multifactor authentication
For eg. When we click on form submit button then OTP should come to 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: HTML links to routes in Angular app

2018-10-29 Thread Shweta
Hi Sander,
I have changed reroute to fit my requirement but not sure why whole page is 
loading
I was trying to take external file attribute and compare with deferred list if 
attribute is there then load the page within component as it happens in angular.

 
  ngOnInit() {
this._Faqservice.getFaqList();
}

  reroute(me) {
// use the closure to keep a reference to me(this)
return function reroute(ev) {
  // might be confusing, but 'this' points to the element
  // orignating the click.
  ev.preventDefault();
  const routeattr = this.getAttribute('routeattr');

 let routeid = this._Faqservice.getFaqList.id;

  if (routeattr === routeid){
console.log("exists");
let routepageid = this._Faqservice.getFaqList.pageId
console.log(routepageid);
  }


  me.router.navigate(['/answer'], {relativeTo: me.activeRouter}, {
skipLocationChange: true,
  });

}

route module file

const appRoutes: Routes = [
{ path: '', redirectTo: 'faqlist', pathMatch: 'full' },
{ path: 'faqlist', component: FaqlistComponent},
{ path: 'answer/:id', component: AnswerComponent }
  ];


service with method for deferred list

  getFaqId(id: any) {
return this.getFaqList().then((obj) => obj.find(faqlist => faqlist.id === 
id));
  }

  getFaqList(){
var def = $.Deferred();
  setTimeout(function(){
var obj = [
  {id:'news', pageid:'1234'},
  {id:'2', pageid:'4567' },
  {id:'3', pageid:'97646709877' }
]
  def.resolve(obj);
  }, 100)
return def;
  }




Thanks for your help, i can post the code on plunker if you want.

Regards
Shweta

-- 
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: disable not working in ng-options in angularjs v1.1.5

2018-10-29 Thread Arun kumar
Thanks Zlatko and Sander for replying,
I have created a workaround for this,
Instead of using disable when in ng-repeat, I have used ng-change and 
ng-disable, now it's working fine.


On Saturday, October 27, 2018 at 10:44:45 PM UTC+5:30, Sander Elias wrote:
>
> Hi Arun,
>
> What Zlatko said, Also search this group, I'm pretty sure I created 
> exactly this thing before it was added to angular.
>
> 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.


Re: [AngularJS] Re: Mat-Stepper

2018-10-29 Thread Partha Majumdar
Thanks Mr Sander. Request if you could provide an example for checking
validity. This will help me lots

On Mon, 29 Oct 2018 at 12:12 PM, Sander Elias  wrote:

> Hi Partha,
>
> I just checked
> .
> Forms are not mandatory.
> However, if you want to control the validity of each step, you need a way
> to feed this into the stepper. Forms are a way to do that.
>
> 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.
>
-- 
Partha Majumdar
http://www.partha.majumdar.org

-- 
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: Mat-Stepper

2018-10-29 Thread Sander Elias
Hi Partha,

I just checked 
.
 
Forms are not mandatory. 
However, if you want to control the validity of each step, you need a way 
to feed this into the stepper. Forms are a way to do that.

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: Mat-Stepper

2018-10-29 Thread Sander Elias
Hi Partha,

I don't believe it is. 
Let me check.

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.


Re: [AngularJS] Re: CSS styling of AngularJS md-autocomplete

2018-10-29 Thread Sander Elias
I understood that. 
however what I meant was, how are you using it? Inside a component? you can 
use your components CSS to replace any formatting that's in there.
open up dev-tools check what selectors are needed and amend them to what 
you want.
You can even read out the class names in the dev-tools and reuse those to 
make it easier.

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.