Comments (6)
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.
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.
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.
I'll keep this open and add something ... when I have some free time :)
from angular-styleguide.
Maybe we should create a new document: "The opinionated AngularJS Performance Guide - by John Papa" 😏
from angular-styleguide.
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)
- Y022 - Naming Conventions For Functions Inside IIFE HOT 1
- JS Hint configuration code is out of date.
- Best way for long controller $inject HOT 7
- Can you give simple Hello World Program? HOT 2
- dataService calls when inside page controllers vs component/directive controllers. HOT 2
- Best way for required directive attribute HOT 2
- NetBeans templates, redux? HOT 1
- Best Practices for `templateUrl` and `ngInclude` URLs HOT 3
- Arrays under scope.vm of directive undefined HOT 7
- Proposal: change from "do" to "consider" adding 'Service' suffix to Service (02-04) classes because it doesn't improve clarity or add value HOT 7
- Where is the best location to place HttpInterceptors?
- Why styleguide suggest use class instead of interface? HOT 3
- A1 - How to pass object received with $routeProvider to other route HOT 1
- Style 03-05 missing! HOT 1
- Angular 5 style guide? HOT 1
- Confusing Information on SharedModule and CoreModule HOT 3
- Should "public" always be omitted in TypeScript? HOT 1
- Private variable - leading underscore HOT 7
- Jasmine Test case failing HOT 1
- AngularJS-UnitTesting | Weather App | Karma
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-styleguide.