btford / btford/angular-express-blog

Code not working in Internet Explorer - (IE is disgusting I know!)

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
601
Forks
244
PR merge metrics
No merged PRs in 30d

Description

Hi There! and thanks for taking the time!
I am really fresh in angulaJS therefore I couldn't find a solution for these bugs. There are two bugs, I was able to find the solution for the first one but not for the second

First try to run the seed in IE (mine is IE8) and you will get this:
- 'IndesCtrl' is undefined
image: http://d.pr/i/atJR

The problem are the quotes in public/js/controllers.js (there aren't)
- BUG: controller: IndexCtrl
- SOLUTION: controller: 'IndexCtrl'
In summary just add simple quotes to wrap your controllers declarations

Unfortunately that is not the end, after fixing that you got another extrange error and I have no idea about this one :(, look:
- I don't understand why I get "There are {{'posts.length'}} posts" explicitly :(
image: http://d.pr/i/yO4b

Any idea????

Also you blog post has the same problems/errors: http://briantford.com/blog/angular-express.html, but that doesn't change the fact that is really useful.

The world could be better without Internet Explorer IE, I know! but no matter what I have to deliver professionally to all browsers :S

Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

Run the seed application in IE8 and inspect public/js/controllers.js, starting with the controller declarations and the view that displays the posts count. Verify that the controllers load and that the posts count renders as a value rather than the literal interpolation expression.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.