请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

正在回答 回答被采纳积分+3

2回答

提问者 dravenxiaokai 2017-09-10 23:14:58
 "dependencies": {
    "@angular/animations": "^4.3.6",
    "@angular/common": "^4.2.4",
    "@angular/compiler": "^4.2.4",
    "@angular/core": "^4.2.4",
    "@angular/forms": "^4.2.4",
    "@angular/http": "^4.2.4",
    "@angular/material": "^2.0.0-beta.7",
    "@angular/platform-browser": "^4.2.4",
    "@angular/platform-browser-dynamic": "^4.2.4",
    "@angular/router": "^4.2.4",
    "core-js": "^2.4.1",
    "rxjs": "^5.4.2",
    "zone.js": "^0.8.14"
  },
  "devDependencies": {
    "@angular/cli": "1.3.2",
    "@angular/compiler-cli": "^4.2.4",
    "@angular/language-service": "^4.2.4",
    "@types/jasmine": "~2.5.53",
    "@types/jasminewd2": "~2.0.2",
    "@types/node": "~6.0.60",
    "codelyzer": "~3.1.1",
    "jasmine-core": "~2.6.2",
    "jasmine-spec-reporter": "~4.1.0",
    "karma": "~1.7.0",
    "karma-chrome-launcher": "~2.1.1",
    "karma-cli": "~1.0.1",
    "karma-coverage-istanbul-reporter": "^1.2.1",
    "karma-jasmine": "~1.1.0",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.1.2",
    "ts-node": "~3.2.0",
    "tslint": "~5.3.2",
    "typescript": "~2.3.3"
  }


0 回复 有任何疑惑可以回复我~
提问者 dravenxiaokai 2017-09-10 18:55:28
login.component.html
<md-card>
  <md-card-header>
    <md-card-title>登录:</md-card-title>
  </md-card-header>
  <md-card-content>
    <md-input-container align="end" color="accent" floatPlaceholder="float" hintLabel="必填项">
      <span mdPrefix>wang</span>
      <input mdInput type="text" placeholder="您的email">
      <span mdSuffix>@gmail.com</span>
    </md-input-container>
  </md-card-content>
  <md-card-actions align="start">
    <p>还没有账户?<a href="">注册</a></p>
    <p>忘记密码?<a href="">找回</a></p>
  </md-card-actions>
</md-card>


0 回复 有任何疑惑可以回复我~
  • 你的版本和课程不一致,课程使用的是 beta.7
    npm uninstall --save @angular/material @angular/cdk
    npm i --save @angular/material@2.0.0-beta.7
    
    或者使用新版本的时候,这个属性已经移除了,现在需要使用 css 来控制
    
    text-align: end
    回复 有任何疑惑可以回复我~ 2017-09-10 22:52:10
  • 提问者 dravenxiaokai 回复 接灰的电子产品 #2
    material版本跟您的是一致的
     "dependencies": {
        "@angular/animations": "^4.3.6",
        "@angular/common": "^4.2.4",
        "@angular/compiler": "^4.2.4",
        "@angular/core": "^4.2.4",
        "@angular/forms": "^4.2.4",
        "@angular/http": "^4.2.4",
        "@angular/material": "^2.0.0-beta.7",
        "@angular/platform-browser": "^4.2.4",
        "@angular/platform-browser-dynamic": "^4.2.4",
        "@angular/router": "^4.2.4",
        "core-js": "^2.4.1",
        "rxjs": "^5.4.2",
        "zone.js": "^0.8.14"
      },
      "devDependencies": {
        "@angular/cli": "1.3.2",
        "@angular/compiler-cli": "^4.2.4",
        "@angular/language-service": "^4.2.4",
        "@types/jasmine": "~2.5.53",
        "@types/jasminewd2": "~2.0.2",
        "@types/node": "~6.0.60",
        "codelyzer": "~3.1.1",
        "jasmine-core": "~2.6.2",
        "jasmine-spec-reporter": "~4.1.0",
        "karma": "~1.7.0",
        "karma-chrome-launcher": "~2.1.1",
        "karma-cli": "~1.0.1",
        "karma-coverage-istanbul-reporter": "^1.2.1",
        "karma-jasmine": "~1.1.0",
        "karma-jasmine-html-reporter": "^0.2.2",
        "protractor": "~5.1.2",
        "ts-node": "~3.2.0",
        "tslint": "~5.3.2",
        "typescript": "~2.3.3"
      }
    回复 有任何疑惑可以回复我~ 2017-09-10 23:14:24
  • 接灰的电子产品 回复 提问者 dravenxiaokai #3
    ^ 不能锁定版本的,我可以肯定你实际安装的是新版本,请按我的上面描述步骤执行一下,再试过
    回复 有任何疑惑可以回复我~ 2017-09-10 23:35:24
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信