Giter Site home page Giter Site logo

angular-express-blog's Introduction

angular-express-blog's People

Contributors

btford avatar wwj718 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-express-blog's Issues

module thew error

module.js:340
throw err;
^
Error: Cannot find module '/var/www/html/angular-express-mongoose-seed/app.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:935:3

New line

Using the example http://briantford.com/blog/angular-express.html I'm not able to multiline blog post.

\n obviously doesn't work

gets escaped by jade.

What I had to do (ugly) was to explode the text in an array of lines and for each line print a

{{line}}

.

any better solution? is it the right one?

Overview of Example Blog

Hi Brian!

First of all thank you for this wonderful example. I've been studying AngularJS for a bit now and have a general idea of how it all works, and also have experience with Express, Jade and Node... but I'm getting a bit tangled up in the flow of how things work with this example. I think the fact that Express and Angular can both handle routes (and they are in this example?), and there are http requests pointing to those URLs, all seem to be a little confusing to me.

Would you please explain briefly what happens in the background when you go through this process regarding Express, Angular and the various http requests:

  1. "Add a new post"
  2. Type in some text and "Submit Post"
  3. "Delete"
  4. "Yes"

I think this would be a huge benefit to anyone learning these frameworks. Thanks!

i got the follwing error running whiel node app.js .. can any one help me i am new to node js and angulr js ?

body-parser deprecated bodyParser: use individual json/urlencoded middlewares ap
p.js:28:9
body-parser deprecated undefined extended: provide extended option node_modules
body-parser\index.js:105:29
C:\Users\AbdulMalik\Desktop\btford-angular-express-seed-50ba978\btford-angular-e
xpress-seed-50ba978\node_modules\express\lib\express.js:89
throw new Error('Most middleware (like ' + name + ') is no longer bundled
with Express and must be installed separately. Please see https://github.com/sen
chalabs/connect#middleware.');
^

Error: Most middleware (like errorHandler) is no longer bundled with Express and
must be installed separately. Please see https://github.com/senchalabs/connect#
middleware.
at Function.Object.defineProperty.get (C:\Users\AbdulMalik\Desktop\btford-an
gular-express-seed-50ba978\btford-angular-express-seed-50ba978\node_modules\expr
ess\lib\express.js:89:13)
at Object. (C:\Users\AbdulMalik\Desktop\btford-angular-express-se
ed-50ba978\btford-angular-express-seed-50ba978\app.js:36:18)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3

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

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:

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!

node api.js cant running

after npm install and trying to running web server and it wont let running

not sure if the express is old version.

$ node api.js
module.js:338
    throw err;
          ^
Error: Cannot find module 'C:\Users\Brian\Documents\GitHub\angular-express-blog\api.js'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3

What cause is that?

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.