Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 11 2016 19:26

    Splaktar on master

    fix(toast): apply theming corre… perf(icon): better handling of … fix(list): copy ng-show, ng-hid… and 49 more (compare)

  • Jun 15 2016 16:14

    Splaktar on v1.1.0-rc.5

    release: version 1.1.0-rc.5 (compare)

  • May 14 2016 05:55

    Splaktar on master

    feat(panel): initial implementa… update(panel): promise logic im… update(panel): add and remove p… and 44 more (compare)

  • May 05 2016 20:47

    Splaktar on v1.1.0-rc4

    release: version 1.1.0-rc4 (compare)

  • May 05 2016 20:47

    Splaktar on v1.1.0-rc3

    release: version 1.1.0-rc3 (compare)

  • May 03 2016 22:28

    Splaktar on es6-tutorial

    Prepare clean start Remove bow… install angular-material And i… working version of starter-app and 19 more (compare)

  • May 03 2016 22:22

    Splaktar on master

    Tutorial Readme updates Updates for Tutorial #2 Update README with tutorial ste… and 56 more (compare)

  • May 01 2016 22:56

    Splaktar on fixBlurryRightNavIe11

    fix(sidenav): rightNav button a… (compare)

  • May 01 2016 22:37

    Splaktar on master

    fix(dialog): don't clobber md-d… update version number in packag… update(changelog): sort so 1.1.… and 1 more (compare)

  • May 01 2016 22:34

    Splaktar on fixSideNavDemo

    docs(sidenav): leftNav text isn… (compare)

  • Apr 27 2016 04:14

    Splaktar on fixSideNavDemo

    docs(sidenav): invalid `md-whit… (compare)

  • Apr 27 2016 03:54

    Splaktar on master

    update(changelog): add missing … fix(toolbar): remove transition… fix(tests): Cleans up the DOM a… and 2 more (compare)

  • Apr 23 2016 01:32

    Splaktar on master

    update(docs): improve docs for … update(docs): renamed `md-text-… fix(list): clickable list-items… and 71 more (compare)

  • Apr 11 2016 03:20

    Splaktar on improveExtendThemeDoc

    update(docs): improve docs for … (compare)

  • Apr 11 2016 03:15

    Splaktar on improveExtendThemeDocs

    update(docs): improve docs for … (compare)

  • Apr 11 2016 02:57

    Splaktar on updateThemingDocs

    update(docs): renamed `md-text-… (compare)

  • Apr 11 2016 02:48

    Splaktar on master

    fix(demo, codepen): use secure … fix(build, layout): remove depr… update(build): remove stale bow… and 72 more (compare)

  • Apr 11 2016 02:48

    Splaktar on v1.1.0-rc2

    release: version 1.1.0-rc2 (compare)

  • Mar 19 2016 03:00

    Splaktar on master

    fix(checkbox): pointer events d… update(tests): remove disabled/… fix(datepicker): enable scrolli… and 20 more (compare)

  • Mar 13 2016 05:41

    Splaktar on v1.0.6

    Revert "fix(select): made selec… update(layout): add layout-nowr… fix(whiteframe): update breakpo… and 57 more (compare)

Tim Burnell
@tmburnell
Have you made sure to import material into the test?
like MatMenuModule
samavamsi1
@samavamsi1
ngDoCheck() {
console.log('hello'); // print this Multiple type more than thousand times
this.selectedProject.GasOperatingPoints = this.selectedProject.GasOperatingPoints.map(
r => {
const Ro = this.altitudeCal(r.T, r.F, r.Dpt, r.Altitude);
return { ...r, Ro: Ro };
}
);
}
stherrienaspnet
@stherrienaspnet
Hello could someone give a link me to a material design demo app with nice form fields layout
stherrienaspnet
@stherrienaspnet
Hello does anyone know how to implement this kind of layout?
2018-04-12 14_48_37-material form icon - Recherche Google.png
2018-04-12 14_47_13-material design form icon - Recherche Google.png
Icon placed on the side of the fields
Kaushik Dhameliya
@dkaushikl
Hello, how to use multiple themes in angular material
rk
@rajkumart08_twitter

Hi,

  • I am new to js.
  • I am analysing a simple code.
  • not sure how it works.
  • for the first time this line console.log("alphabet--->" + alphabet); is printing undefined counts[alphabet]--->undefined
  • can you tell me why its printing undefined.
  • for the second time its printing 3 at this line console.log(counts[alphabet] + 1);
  • but it should print two right since 1+ 1.
  • can you guys explain so that in future I can fix it myself.
  • providing my code changes below.

var str = "aaabbccccddd";
var arr = str.split("");
var counts = {};
for (var i = 0; i < arr.length; i++) {
    var alphabet = arr[i];
    console.log("alphabet--->" + alphabet);
        console.log("counts[alphabet]--->" + counts[alphabet]);

    if (counts[alphabet]) 
        {
            counts[alphabet] = counts[alphabet] + 1;
            console.log("inside if--->");
            //console.log("inside if--->" + counts[alphabet] + 1);
            console.log(counts[alphabet] + 1);
        }
    else
    { 
        counts[alphabet] = 1;
        console.log("inside else--->");
        console.log(counts[alphabet]);

        //console.log("inside else--->" + counts[alphabet] + 1);
    }
    //counts[alphabet] = counts[alphabet] ? counts[alphabet] + 1 : 1;
}

console.log('a: ' + counts['a'] + '\n b: ' + counts['b'] + '\n c: ' + counts['c'] + '\n d: ' + counts['d'])

output

alphabet--->a
counts[alphabet]--->undefined
inside else--->
1
alphabet--->a
counts[alphabet]--->1
inside if--->
3
alphabet--->a
counts[alphabet]--->2
inside if--->
4
alphabet--->b
counts[alphabet]--->undefined
inside else--->
1
alphabet--->b
counts[alphabet]--->1
inside if--->
3
alphabet--->c
counts[alphabet]--->undefined
inside else--->
1
alphabet--->c
counts[alphabet]--->1
inside if--->
3
alphabet--->c
counts[alphabet]--->2
inside if--->
4
alphabet--->c
counts[alphabet]--->3
inside if--->
5
alphabet--->d
counts[alphabet]--->undefined
inside else--->
1
alphabet--->d
counts[alphabet]--->1
inside if--->
3
alphabet--->d
counts[alphabet]--->2
inside if--->
4
a: 3
b: 2
c: 4
d: 3

Tim Burnell
@tmburnell
first pass you set count[alphabet] = 1 second pass you add 1, but then add another one on display (but does not retain the second addition)
Narendra
@NarenShalem
@NarenShalem
hi
any one suggest multiple action label for single snakbar
like confirmation message cancel and ok
Raj Bisht
@Whhymee
hey, how to integrate font-awesome 5 with angular material
Tim Burnell
@tmburnell
I spent a little time the other day and could not get it to work. most of what i found was for use where you still had to build it.
Tim Burnell
@tmburnell
that looks like 4.7 not 5
Kaushik Dhameliya
@dkaushikl
i have already use with angular 5
Raj Bisht
@Whhymee
yeah its version fa 4.7 not 5
yurigoular
@yurigoular
good morning, i'm having a little problem with md-input-container in angular material, in mobile version, when i set the focus in the input, the mobile open the virtual keyboard, but the javascript don't set the focus on the input, so the input stay behind the element, can somente help me?
stherrienaspnet
@stherrienaspnet
How to set form as pristine?
yurigoular
@yurigoular
$scope[formName].$setPristine()
stherrienaspnet
@stherrienaspnet
I'm using angular 5
yurigoular
@yurigoular
this.form.markAsPristine()
stherrienaspnet
@stherrienaspnet
thanks :))
do i need also markAsUntouched?
yurigoular
@yurigoular
if you use untouched for validate...
stherrienaspnet
@stherrienaspnet
nope, thank @yurigoular
yuri there is still something wrong
let met show you 2 captures...
image.png
this when i load the page
and here is when i have saved the data and reset the form using
    this.customerForm.reset();
    this.customerForm.markAsPristine();
stherrienaspnet
@stherrienaspnet
image.png
do i have to loop each controls to mark them pristine?
yurigoular
@yurigoular
set as valid
stherrienaspnet
@stherrienaspnet
this.customerForm.setValid?
yurigoular
@yurigoular
https://angular.io/api/forms/AbstractControl
Have the section of setValidators
Himanshu joshi
@himjoshu_twitter
i want to pass value from a component to it's grandparent component on certain value change in that component when certain event occurs.
i'm using angular 5
i'm try to pass a boolean value to grandparent component on login or signup success in form so that profile button hidden proprty get false and it can use service where after auth value got store.
yurigoular
@yurigoular
i guess tyou can pass the function to Child and execute in child
yurigoular
@yurigoular
if you pass as two-way binding, from grandparent to the current component, isn't possible?
stherrienaspnet
@stherrienaspnet
I do not understand how mat-error is working
here is my field name
              <mat-icon color="primary">business</mat-icon>
              <mat-form-field class="field-with-icon">
                <input matInput [formControl]="name" placeholder="{{'NAME' | translate}}" value="" required>
                <mat-error *ngIf="duplicateError == true">
                  {{'DUPLICATE_CUSTOMER_NAME' |translate}}
                </mat-error>
              </mat-form-field>
when i set this.dupplicateError = true nothing is displayed on the form, no error message, did i forgot something?
Mateus Carniatto
@Carniatto
There is any easy way to have a inverted fab button?
yurigoular
@yurigoular
invert? explain better pls
Mateus Carniatto
@Carniatto
Screen Shot 2018-04-18 at 13.26.04.png