Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile issue involving @angular/material #64

Closed
chriswilley opened this issue Oct 16, 2017 · 1 comment
Closed

Compile issue involving @angular/material #64

chriswilley opened this issue Oct 16, 2017 · 1 comment

Comments

@chriswilley
Copy link

Since angular/material 2.0.0-beta.12, the "md" prefix has been replaced with "mat". This prevents MapMip from compiling with ng serve or ng build. To fix it, change the "MdInputModule" reference to "MatInputModule" in src/app/app.module.ts and src/app/map-mip/components/position-form/position-form.module.ts. Also need to change src/app/map-mip/components/position-form/position-form.component.html like so:

<md-input-container color="primary">
    <input mdInput placeholder="{{key}}" [(ngModel)]="params[key].val"
        [ngModelOptions]="{standalone: true}">
</md-input-container>

to:

<mat-input-container color="primary">
    <input matInput placeholder="{{key}}" [(ngModel)]="params[key].val"
        [ngModelOptions]="{standalone: true}">
</mat-input-container>

See this SO post for more info.

@yairtawil
Copy link
Contributor

Closed via #66
Thanks @chriswilley 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants