[AngularJS] Error: Invalid provider for the NgModule 'DynamicTestModule' - only instances of Provider and Type are allowed, got: [?[object Object]?, ...]

2019-10-29 Thread Dev C
Hello I am writing Unit test cases as below: import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { Injectable, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core'; import { isPlatformBrowser } from '@angular/common'; import { By, BrowserModule } from

Re: [AngularJS] Re: How to Create js for angular element so that it can be used in any project

2019-10-29 Thread Nishith Kumar
Thank you Sander On Tue, Oct 29, 2019, 7:33 PM Sander Elias wrote: > Hi Nishith, > > I thinks this is a good starting point: > https://www.softwarearchitekt.at/aktuelles/your-options-for-building-angular-elements/ > > Regards > Sander > > -- > You received this message because you are

Re: [AngularJS] Re: On click event, an item in a list should change its style

2019-10-29 Thread luca leone
Thanks Elias, I did, but could not figure out a solution. Since you pointed me in that direction I'll check it out again. On Tue, Oct 29, 2019 at 3:30 PM Sander Elias wrote: > Hi Luca, > > Look up `ngClass ` > > Regards > Sander > > -- >

[AngularJS] Re: Caching of Angular components

2019-10-29 Thread Sander Elias
Hi Manoj, Have a look at how ngIf works, and build your own structural directive to handle your use-case. 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

[AngularJS] Re: On click event, an item in a list should change its style

2019-10-29 Thread Sander Elias
Hi Luca, Look up `ngClass ` 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

[AngularJS] Re: I am getting error Schema validation failed with the following errors: Data path ".builders['browser']" should have required property 'class'.

2019-10-29 Thread Sander Elias
Hi Rajneesh, There is not enough context to provide you even with the beginning of an answer. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from

[AngularJS] Re: How much data should web service return?

2019-10-29 Thread Sander Elias
Hi Nhut, There is only one answer. It depends. On the size of the data, On what kind of clients, on expected network speed, and on tens of other things. Usually, I look at the complete size of the returned data. if that's <100Kb I just pull everything all the time. However, this is not a hard

[AngularJS] Re: How to Create js for angular element so that it can be used in any project

2019-10-29 Thread Sander Elias
Hi Nishith, I thinks this is a good starting point: https://www.softwarearchitekt.at/aktuelles/your-options-for-building-angular-elements/ Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from

[AngularJS] On click event, an item in a list should change its style

2019-10-29 Thread luca leone
Hello everybody, I'm using AngularJS v1.7.5. I have a list of 5 items, 5 html divs, that I created with the `ng-repeat` directive. I set a bound between the Model and the View for `$scope.avatars[avatar.sex]` and `$scope.placeholder`. Then by using the `ng-click` directive I created this

[AngularJS] Re: $setViewValue doesn't update ng-model

2019-10-29 Thread Marjan Jangholi
u can use ngModel.$render() after ngModel.$setViewValue(title + ++i); On Friday, December 14, 2012 at 5:08:49 PM UTC+3:30, Alex Figueiredo wrote: > > Can someone tell me what I'm doing wrong here? > > angular.module('customControl', []) > .directive('rangePicker', function () { > >