Coder Social home page Coder Social logo

yangjunhan / angular-hacker-news Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 0.0 2.27 MB

This has been developed as a practice project in order to get familiar with Angular and its relevant front-end technology stack.

License: MIT License

JavaScript 3.98% TypeScript 78.71% HTML 10.19% CSS 7.12%

angular-hacker-news's People

Contributors

yangjunhan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

angular-hacker-news's Issues

Tips

改进建议:

  1. 加入 https://prettier.io/ 配置,统一格式化代码
  2. router 的 category 使用 router params,而不是写死在data里面
  3. tslint 中 增加 "no-any": true
  4. service中应该通过 map 封装好 total Page, 而不是在 component 再进行计算
    this.totalPage = Math.ceil(this.api.dataSize / this.pageSize);
  5. 所有retry 接口的代码在 http interceptor 中进行封装 https://angular.io/api/common/http/HttpInterceptor

新的作业:

  1. 所有的 Component 修改为 OnPush 模式:https://netbasal.com/a-comprehensive-guide-to-angular-onpush-change-detection-strategy-5bac493074a4
  2. 对时间处理的函数修改为 date-fns

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.