Comments (5)
@caguillen214, I've created an example app that is meant to look somewhat correct although underneath it violates many best practices in order to showcase how silent errors affect applications. Please feel free to add to the errors in the application or change it as necessary. I know that many of the errors in HintDirectives
correspond to custom directives, but I wasn't sure if it was overkill to create a custom directive for this simple application. What do you think? I'm also considering making a second application with identical look and feel and goal, but that does not violate the best practices.
from angular-hint.
In 17ed6ae I've added a correctExample
that has the same behavior as the example
but does not violate best practices. It should not produce any error messages. However, some problems in individual modules cause incorrect hints. I've filed issues on those modules: https://github.com/angular/angular-hint-dom/issues/14, https://github.com/angular/angular-hint-modules/issues/14, https://github.com/angular/angular-hint-controllers/issues/10
from angular-hint.
This is great! And I think thats a good idea. I do think that making custom directives would be beneficial though because theres a lot of features related to that in HintDirectives
from angular-hint.
Okay, I've basically spent today fixing the issues I referenced above that I discovered in testing the SampleApplication. I will work on adding a custom directive to test and show AngularHintDirectives behavior.
from angular-hint.
In 149b9b5 I updated the incorrect example app and the correctExample app to use a custom directive. Honestly, I'm not sure I'm familiar enough with directives to make a really convincing broken example. Feel free to suggest changes. I've tried to maximize the number of hints that I am generating.
from angular-hint.
Related Issues (20)
- RFC: Improving hints related to $parse HOT 1
- causing infinite digests on angular material wesbite
- $watch override makes one-time bindings in expressions to never clear the associated watch HOT 2
- Incorrectly reports digest time HOT 2
- TypeError: Cannot read property 'name' of undefined at module.exports HOT 15
- Error when loading angular-hint with requirejs HOT 7
- Validate directive / component definition HOT 1
- Script Error in requirejs environment, cannot load angular-hint. HOT 2
- Not seeing any warning /Error on console.
- Log / Warn for naming collisions in registerables (directives, controllers, filters etc.)
- hint.js giving error, Cannot read property 'name' of undefined HOT 2
- A semicolon error
- dist angular-hint.js file to be used without requirejs? HOT 7
- NPM install fails HOT 1
- Reconsidering bower? HOT 4
- humanReadableWatchExpression error on app load HOT 2
- Why controllers, dom and directives not working? HOT 1
- "$event is undefined"
- Unexpected end of expression when using 'angular-ui-bootstrap' HOT 4
- A bower-angular-hint would be nice HOT 1
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-hint.