Git Product home page Git Product logo

Comments (6)

johnpapa avatar johnpapa commented on August 27, 2024

I think there is something to say on filters. Next to directives, they may be the most abused feature in Angular, IMO. Filters can be a perf drain if not used wisely ... as when a filter hits a large and deep object graph. When used wisely, they are great. I'll consider adding some styles ... but mostly for filters, its about perf, which may not be appropriate in this doc.

from angular-styleguide.

Siyfion avatar Siyfion commented on August 27, 2024

While too much info on perf may not really belong in this document, I think it would still be worth mentioning that they are to be used with caution and add some basic style guidelines. 👍

from angular-styleguide.

patrick-fls avatar patrick-fls commented on August 27, 2024

I think explaining briefly the performance issues coming with filters fit in this document, just like the use of IIFE is to avoid naming conflicts, for example.

from angular-styleguide.

johnpapa avatar johnpapa commented on August 27, 2024

I'll keep this open and add something ... when I have some free time :)

from angular-styleguide.

juristr avatar juristr commented on August 27, 2024

Maybe we should create a new document: "The opinionated AngularJS Performance Guide - by John Papa" 😏

from angular-styleguide.

willmendesneto avatar willmendesneto commented on August 27, 2024

Based in this closed issue (angular/angular.js#10110) I guess that it's a good idea mention in the filter section that filters should not have periods or other special characters.

from angular-styleguide.

Related Issues (20)

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.