Ref: https://github.com/hellsan631/questionair
http://stackoverflow.com/questions/32132324/n-level-hierarchy-array-angular-js
Installation:
- Clone the github: https://github.com/hellsan631/questionair.git
123456teddy@teddy-K43SJ:~/Documents/node$ git clone https://github.com/hellsan631/questionair.gitCloning into 'questionair'...remote: Counting objects: 57, done.remote: Total 57 (delta 0), reused 0 (delta 0), pack-reused 57Unpacking objects: 100% (57/57), done.Checking connectivity... done.
It’d create a new dir ‘questionair’. - Go to the dir then install the node packages
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512teddy@teddy-K43SJ:~/Documents/node$ cd questionair/teddy@teddy-K43SJ:~/Documents/node/questionair$ npm installnpm WARN deprecated showdown@0.3.1: IMPORTANT hotfixnpm WARN prefer global ycssmin@1.0.1 should be installed with -g> questionair@1.0.0 postinstall /home/teddy/Documents/node/questionair> bower installbower not-cached https://github.com/angular/bower-angular.git#~1.4.0bower resolve https://github.com/angular/bower-angular.git#~1.4.0bower not-cached https://github.com/angular/bower-angular-resource.git#~1.4.0bower resolve https://github.com/angular/bower-angular-resource.git#~1.4.0bower not-cached https://github.com/Dogfalo/materialize.git#^0.96.1bower resolve https://github.com/Dogfalo/materialize.git#^0.96.1bower download https://github.com/Dogfalo/materialize/archive/v0.96.1.tar.gzbower download https://github.com/angular/bower-angular/archive/v1.4.14.tar.gzbower download https://github.com/angular/bower-angular-resource/archive/v1.4.14.tar.gzbower extract angular-resource#~1.4.0 archive.tar.gzbower resolved https://github.com/angular/bower-angular-resource.git#1.4.14bower progress materialize#^0.96.1 received 0.7MBbower extract angular#~1.4.0 archive.tar.gzbower resolved https://github.com/angular/bower-angular.git#1.4.14bower progress materialize#^0.96.1 received 0.9MBbower progress materialize#^0.96.1 received 1.3MBbower progress materialize#^0.96.1 received 1.8MBbower progress materialize#^0.96.1 received 2.6MBbower progress materialize#^0.96.1 received 3.8MBbower progress materialize#^0.96.1 received 5.0MBbower progress materialize#^0.96.1 received 6.3MBbower progress materialize#^0.96.1 received 7.4MBbower progress materialize#^0.96.1 received 8.7MBbower progress materialize#^0.96.1 received 9.8MBbower progress materialize#^0.96.1 received 11.0MBbower progress materialize#^0.96.1 received 11.9MBbower progress materialize#^0.96.1 received 13.1MBbower progress materialize#^0.96.1 received 14.1MBbower progress materialize#^0.96.1 received 15.2MBbower progress materialize#^0.96.1 received 16.4MBbower progress materialize#^0.96.1 received 17.4MBbower progress materialize#^0.96.1 received 18.3MBbower progress materialize#^0.96.1 received 19.3MBbower progress materialize#^0.96.1 received 20.3MBbower progress materialize#^0.96.1 received 21.3MBbower extract materialize#^0.96.1 archive.tar.gzbower invalid-meta for:/tmp/teddy/bower/8480297053d21bdb74dfb8c631a0bb5b-8801-0LYZhj/bower.jsonbower invalid-meta The "name" is recommended to be lowercase, can contain digits, dots, dashesbower invalid-meta The "main" field cannot contain font, image, audio, or video filesbower invalid-meta The "main" field cannot contain font, image, audio, or video filesbower invalid-meta The "main" field cannot contain font, image, audio, or video filesbower invalid-meta The "main" field cannot contain font, image, audio, or video filesbower invalid-meta The "main" field cannot contain font, image, audio, or video filesbower invalid-meta The "main" field cannot contain font, image, audio, or video filesbower invalid-meta The "main" field cannot contain font, image, audio, or video filesbower invalid-meta The "main" field cannot contain font, image, audio, or video filesbower invalid-meta The "main" field cannot contain font, image, audio, or video filesbower invalid-meta The "main" field cannot contain font, image, audio, or video filesbower invalid-meta The "main" field cannot contain font, image, audio, or video filesbower invalid-meta The "main" field cannot contain font, image, audio, or video filesbower invalid-meta The "main" field cannot contain font, image, audio, or video filesbower invalid-meta The "main" field cannot contain font, image, audio, or video filesbower invalid-meta The "main" field has to contain only 1 file per filetype; found multiple .ttf files: ["font/material-design-icons/Material-Design-Icons.ttf","font/roboto/Roboto-Bold.ttf","font/roboto/Roboto-Light.ttf","font/roboto/Roboto-Medium.ttf","font/roboto/Roboto-Regular.ttf","font/roboto/Roboto-Thin.ttf"]bower invalid-meta The "main" field has to contain only 1 file per filetype; found multiple .woff files: ["font/material-design-icons/Material-Design-Icons.woff","font/roboto/Roboto-Bold.woff","font/roboto/Roboto-Light.woff","font/roboto/Roboto-Medium.woff","font/roboto/Roboto-Regular.woff","font/roboto/Roboto-Thin.woff"]bower invalid-meta The "main" field has to contain only 1 file per filetype; found multiple .woff2 files: ["font/material-design-icons/Material-Design-Icons.woff2","font/roboto/Roboto-Bold.woff2","font/roboto/Roboto-Light.woff2","font/roboto/Roboto-Medium.woff2","font/roboto/Roboto-Regular.woff2","font/roboto/Roboto-Thin.woff2"]bower resolved https://github.com/Dogfalo/materialize.git#0.96.1bower cached https://github.com/jquery/jquery-dist.git#3.1.1bower validate 3.1.1 against https://github.com/jquery/jquery-dist.git#>=2.1.1bower install angular-resource#1.4.14bower install angular#1.4.14bower install materialize#0.96.1bower install jquery#3.1.1angular-resource#1.4.14 client/app/bower_components/angular-resource└── angular#1.4.14angular#1.4.14 client/app/bower_components/angularmaterialize#0.96.1 client/app/bower_components/materialize└── jquery#3.1.1jquery#3.1.1 client/app/bower_components/jqueryquestionair@1.0.0 /home/teddy/Documents/node/questionair├─┬ compression@1.6.2│ ├─┬ accepts@1.3.3│ │ ├── mime-types@2.1.14│ │ └── negotiator@0.6.1│ ├── bytes@2.3.0│ ├─┬ compressible@2.0.9│ │ └── mime-db@1.26.0│ ├─┬ debug@2.2.0│ │ └── ms@0.7.1│ ├── on-headers@1.0.1│ └── vary@1.1.0├── cors@2.8.1├─┬ errorhandler@1.5.0│ └── escape-html@1.0.3├─┬ jshint@2.9.4│ ├─┬ cli@1.0.1│ │ └─┬ glob@7.1.1│ │ ├── fs.realpath@1.0.0│ │ ├─┬ inflight@1.0.6│ │ │ └── wrappy@1.0.2│ │ ├── inherits@2.0.3│ │ ├── once@1.4.0│ │ └── path-is-absolute@1.0.1│ ├─┬ console-browserify@1.1.0│ │ └── date-now@0.1.4│ ├── exit@0.1.2│ ├─┬ htmlparser2@3.8.3│ │ ├── domelementtype@1.3.0│ │ ├── domhandler@2.3.0│ │ ├─┬ domutils@1.5.1│ │ │ └─┬ dom-serializer@0.1.0│ │ │ └── domelementtype@1.1.3│ │ ├── entities@1.0.0│ │ └─┬ readable-stream@1.1.14│ │ ├── core-util-is@1.0.2│ │ ├── isarray@0.0.1│ │ └── string_decoder@0.10.31│ ├── lodash@3.7.0│ ├─┬ minimatch@3.0.3│ │ └─┬ brace-expansion@1.1.6│ │ ├── balanced-match@0.4.2│ │ └── concat-map@0.0.1│ ├── shelljs@0.3.0│ └── strip-json-comments@1.0.4├─┬ loopback@2.38.1│ ├─┬ async@2.1.5│ │ └── lodash@4.17.4│ ├── bcryptjs@2.4.3│ ├─┬ body-parser@1.17.1│ │ ├── bytes@2.4.0│ │ ├── content-type@1.0.2│ │ ├─┬ debug@2.6.1│ │ │ └── ms@0.7.2│ │ ├── http-errors@1.6.1│ │ ├── iconv-lite@0.4.15│ │ ├─┬ on-finished@2.3.0│ │ │ └── ee-first@1.1.1│ │ ├── qs@6.4.0│ │ ├─┬ raw-body@2.2.0│ │ │ ├── bytes@2.4.0│ │ │ └── unpipe@1.0.0│ │ └─┬ type-is@1.6.14│ │ └── media-typer@0.3.0│ ├── canonical-json@0.0.4│ ├─┬ cookie-parser@1.4.3│ │ ├── cookie@0.3.1│ │ └── cookie-signature@1.0.6│ ├── depd@1.1.0│ ├── ejs@2.5.6│ ├─┬ express@4.15.2│ │ ├── array-flatten@1.1.1│ │ ├── content-disposition@0.5.2│ │ ├─┬ debug@2.6.1│ │ │ └── ms@0.7.2│ │ ├── encodeurl@1.0.1│ │ ├─┬ finalhandler@1.0.0│ │ │ └─┬ debug@2.6.1│ │ │ └── ms@0.7.2│ │ ├── merge-descriptors@1.0.1│ │ ├── methods@1.1.2│ │ ├── path-to-regexp@0.1.7│ │ ├─┬ proxy-addr@1.1.3│ │ │ ├── forwarded@0.1.0│ │ │ └── ipaddr.js@1.2.0│ │ ├── range-parser@1.2.0│ │ ├─┬ send@0.15.1│ │ │ ├── debug@2.6.1│ │ │ ├── destroy@1.0.4│ │ │ ├── mime@1.3.4│ │ │ └── ms@0.7.2│ │ ├── serve-static@1.12.1│ │ ├── setprototypeof@1.0.3│ │ ├── statuses@1.3.1│ │ └── utils-merge@1.0.0│ ├── inflection@1.12.0│ ├── isemail@1.2.0│ ├── loopback-connector-remote@1.3.3│ ├─┬ loopback-context@1.0.0│ │ └─┬ continuation-local-storage@3.2.0│ │ ├─┬ async-listener@0.6.4│ │ │ ├── semver@5.3.0│ │ │ └── shimmer@1.1.0│ │ └─┬ emitter-listener@1.0.1│ │ └── shimmer@1.0.0│ ├─┬ loopback-phase@1.4.1│ │ └── async@0.9.2│ ├─┬ nodemailer@2.7.2│ │ ├─┬ libmime@3.0.0│ │ │ ├── libbase64@0.1.0│ │ │ └── libqp@1.1.0│ │ ├─┬ mailcomposer@4.0.1│ │ │ └─┬ buildmail@4.0.1│ │ │ ├── addressparser@1.0.1│ │ │ └── punycode@1.4.1│ │ ├─┬ nodemailer-direct-transport@3.3.2│ │ │ └─┬ smtp-connection@2.12.0│ │ │ └─┬ httpntlm@1.6.1│ │ │ ├── httpreq@0.4.23│ │ │ └── underscore@1.7.0│ │ ├─┬ nodemailer-shared@1.1.0│ │ │ └── nodemailer-fetch@1.6.0│ │ ├─┬ nodemailer-smtp-pool@2.8.2│ │ │ └── nodemailer-wellknown@0.1.10│ │ ├── nodemailer-smtp-transport@2.7.2│ │ └─┬ socks@1.1.9│ │ ├── ip@1.1.5│ │ └── smart-buffer@1.1.15│ ├── nodemailer-stub-transport@1.1.0│ ├── stable@0.1.6│ ├─┬ strong-globalize@2.8.2│ │ ├── async@1.5.2│ │ ├── esprima@2.7.3│ │ ├── estraverse@4.2.0│ │ ├─┬ g11n-pipeline@1.3.0│ │ │ └─┬ swagger-client@2.1.32│ │ │ ├── btoa@1.1.2│ │ │ ├── cookiejar@2.1.0│ │ │ ├─┬ js-yaml@3.8.2│ │ │ │ └── esprima@3.1.3│ │ │ ├── lodash-compat@3.10.2│ │ │ └─┬ superagent@2.3.0│ │ │ ├── component-emitter@1.2.1│ │ │ ├─┬ form-data@1.0.0-rc4│ │ │ │ └── async@1.5.2│ │ │ └── formidable@1.1.1│ │ ├─┬ htmlparser2@3.9.2│ │ │ ├── entities@1.1.1│ │ │ └─┬ readable-stream@2.2.5│ │ │ ├── buffer-shims@1.0.0│ │ │ ├── isarray@1.0.0│ │ │ └── process-nextick-args@1.0.7│ │ ├─┬ md5@2.2.1│ │ │ ├── charenc@0.0.2│ │ │ ├── crypt@0.0.2│ │ │ └── is-buffer@1.1.5│ │ ├── mkdirp@0.5.1│ │ ├─┬ mktmpdir@0.1.1│ │ │ └── rimraf@2.2.8│ │ ├── optional@0.1.3│ │ ├─┬ os-locale@1.4.0│ │ │ └─┬ lcid@1.0.0│ │ │ └── invert-kv@1.0.0│ │ ├── posix-getopt@1.2.0│ │ ├── word-count@0.2.2│ │ ├── xtend@4.0.1│ │ └─┬ yamljs@0.2.8│ │ └── argparse@1.0.9│ ├─┬ strong-remoting@2.33.0│ │ ├── eventemitter2@2.2.2│ │ ├─┬ jayson@1.2.2│ │ │ ├─┬ commander@1.3.2│ │ │ │ └── keypress@0.1.0│ │ │ ├── eyes@0.1.8│ │ │ ├─┬ JSONStream@1.0.3│ │ │ │ └── jsonparse@1.0.0│ │ │ └── lodash@3.6.0│ │ ├── js2xmlparser@1.0.0│ │ ├─┬ mux-demux@3.7.9│ │ │ ├── duplex@1.0.0│ │ │ ├── json-buffer@2.0.11│ │ │ ├─┬ msgpack-stream@0.0.12│ │ │ │ ├─┬ bops@0.0.6│ │ │ │ │ ├── base64-js@0.0.2│ │ │ │ │ └── to-utf8@0.0.1│ │ │ │ ├── msgpack-js@0.3.0│ │ │ │ └── through@2.3.4│ │ │ ├─┬ stream-combiner@0.0.2│ │ │ │ └── duplexer@0.0.4│ │ │ ├── stream-serializer@1.1.2│ │ │ ├── through@2.3.8│ │ │ └── xtend@1.0.3│ │ ├─┬ request@2.81.0│ │ │ ├── aws-sign2@0.6.0│ │ │ ├── aws4@1.6.0│ │ │ ├── caseless@0.12.0│ │ │ ├─┬ combined-stream@1.0.5│ │ │ │ └── delayed-stream@1.0.0│ │ │ ├── extend@3.0.0│ │ │ ├── forever-agent@0.6.1│ │ │ ├─┬ form-data@2.1.2│ │ │ │ └── asynckit@0.4.0│ │ │ ├─┬ har-validator@4.2.1│ │ │ │ ├─┬ ajv@4.11.5│ │ │ │ │ ├── co@4.6.0│ │ │ │ │ └─┬ json-stable-stringify@1.0.1│ │ │ │ │ └── jsonify@0.0.0│ │ │ │ └── har-schema@1.0.5│ │ │ ├─┬ hawk@3.1.3│ │ │ │ ├── boom@2.10.1│ │ │ │ ├── cryptiles@2.0.5│ │ │ │ ├── hoek@2.16.3│ │ │ │ └── sntp@1.0.9│ │ │ ├─┬ http-signature@1.1.1│ │ │ │ ├── assert-plus@0.2.0│ │ │ │ ├─┬ jsprim@1.4.0│ │ │ │ │ ├── assert-plus@1.0.0│ │ │ │ │ ├── extsprintf@1.0.2│ │ │ │ │ ├── json-schema@0.2.3│ │ │ │ │ └── verror@1.3.6│ │ │ │ └─┬ sshpk@1.11.0│ │ │ │ ├── asn1@0.2.3│ │ │ │ ├── assert-plus@1.0.0│ │ │ │ ├── bcrypt-pbkdf@1.0.1│ │ │ │ ├─┬ dashdash@1.14.1│ │ │ │ │ └── assert-plus@1.0.0│ │ │ │ ├── ecc-jsbn@0.1.1│ │ │ │ ├─┬ getpass@0.1.6│ │ │ │ │ └── assert-plus@1.0.0│ │ │ │ ├── jodid25519@1.0.2│ │ │ │ ├── jsbn@0.1.1│ │ │ │ └── tweetnacl@0.14.5│ │ │ ├── is-typedarray@1.0.0│ │ │ ├── isstream@0.1.2│ │ │ ├── json-stringify-safe@5.0.1│ │ │ ├── oauth-sign@0.8.2│ │ │ ├── performance-now@0.2.0│ │ │ ├── safe-buffer@5.0.1│ │ │ ├── stringstream@0.0.5│ │ │ ├── tough-cookie@2.3.2│ │ │ └── tunnel-agent@0.6.0│ │ ├─┬ sse@0.0.6│ │ │ └── options@0.0.6│ │ └─┬ xml2js@0.4.17│ │ ├── sax@1.2.2│ │ └── xmlbuilder@4.2.1│ ├── uid2@0.0.3│ └─┬ underscore.string@3.3.4│ ├── sprintf-js@1.0.3│ └── util-deprecate@1.0.2├─┬ loopback-boot@2.23.0│ ├── async@0.9.2│ ├── commondir@0.0.1│ ├── lodash@3.10.1│ ├── semver@4.3.6│ └── toposort@0.2.12├─┬ loopback-datasource-juggler@2.54.1│ ├── async@1.0.0│ ├─┬ loopback-connector@2.7.1│ │ ├── async@1.5.2│ │ ├── bluebird@3.5.0│ │ └─┬ msgpack5@3.4.1│ │ └── bl@1.2.0│ ├── qs@3.1.0│ ├── shortid@2.2.8│ ├── traverse@0.6.6│ └── uuid@3.0.1├─┬ loopback-explorer@1.8.0│ ├─┬ debug@1.0.4│ │ └── ms@0.6.2│ ├─┬ express@3.21.2│ │ ├── basic-auth@1.0.4│ │ ├── commander@2.6.0│ │ ├─┬ connect@2.30.2│ │ │ ├── basic-auth-connect@1.0.0│ │ │ ├─┬ body-parser@1.13.3│ │ │ │ ├── iconv-lite@0.4.11│ │ │ │ └─┬ raw-body@2.1.7│ │ │ │ ├── bytes@2.4.0│ │ │ │ └── iconv-lite@0.4.13│ │ │ ├── bytes@2.1.0│ │ │ ├─┬ compression@1.5.2│ │ │ │ ├─┬ accepts@1.2.13│ │ │ │ │ └── negotiator@0.5.3│ │ │ │ └── vary@1.0.1│ │ │ ├─┬ connect-timeout@1.6.2│ │ │ │ └── http-errors@1.3.1│ │ │ ├── cookie@0.1.3│ │ │ ├── cookie-parser@1.3.5│ │ │ ├─┬ csurf@1.8.3│ │ │ │ ├── cookie@0.1.3│ │ │ │ ├─┬ csrf@3.0.6│ │ │ │ │ ├── rndm@1.2.0│ │ │ │ │ ├── tsscmp@1.0.5│ │ │ │ │ └─┬ uid-safe@2.1.4│ │ │ │ │ └── random-bytes@1.0.0│ │ │ │ └── http-errors@1.3.1│ │ │ ├── depd@1.0.1│ │ │ ├─┬ errorhandler@1.4.3│ │ │ │ └─┬ accepts@1.3.3│ │ │ │ └── negotiator@0.6.1│ │ │ ├─┬ express-session@1.11.3│ │ │ │ ├── cookie@0.1.3│ │ │ │ ├── crc@3.3.0│ │ │ │ ├── depd@1.0.1│ │ │ │ └─┬ uid-safe@2.0.0│ │ │ │ └── base64-url@1.2.1│ │ │ ├─┬ finalhandler@0.4.0│ │ │ │ └── escape-html@1.0.2│ │ │ ├── fresh@0.3.0│ │ │ ├── http-errors@1.3.1│ │ │ ├─┬ method-override@2.3.7│ │ │ │ └─┬ debug@2.3.3│ │ │ │ └── ms@0.7.2│ │ │ ├─┬ morgan@1.6.1│ │ │ │ └── depd@1.0.1│ │ │ ├─┬ multiparty@3.3.2│ │ │ │ ├─┬ readable-stream@1.1.14│ │ │ │ │ └── isarray@0.0.1│ │ │ │ └─┬ stream-counter@0.2.0│ │ │ │ └─┬ readable-stream@1.1.14│ │ │ │ └── isarray@0.0.1│ │ │ ├── pause@0.1.0│ │ │ ├── qs@4.0.0│ │ │ ├── response-time@2.3.2│ │ │ ├─┬ serve-favicon@2.3.2│ │ │ │ ├── etag@1.7.0│ │ │ │ └── ms@0.7.2│ │ │ ├─┬ serve-index@1.7.3│ │ │ │ ├─┬ accepts@1.2.13│ │ │ │ │ └── negotiator@0.5.3│ │ │ │ ├── batch@0.5.3│ │ │ │ └── http-errors@1.3.1│ │ │ ├─┬ serve-static@1.10.3│ │ │ │ └─┬ send@0.13.2│ │ │ │ ├── depd@1.1.0│ │ │ │ ├── ms@0.7.1│ │ │ │ ├── range-parser@1.0.3│ │ │ │ └── statuses@1.2.1│ │ │ └── vhost@3.0.2│ │ ├── content-disposition@0.5.0│ │ ├── cookie@0.1.3│ │ ├─┬ debug@2.2.0│ │ │ └── ms@0.7.1│ │ ├── depd@1.0.1│ │ ├── escape-html@1.0.2│ │ ├── etag@1.7.0│ │ ├── fresh@0.3.0│ │ ├── merge-descriptors@1.0.0│ │ ├─┬ proxy-addr@1.0.10│ │ │ └── ipaddr.js@1.0.5│ │ ├── range-parser@1.0.3│ │ ├─┬ send@0.13.0│ │ │ ├── debug@2.2.0│ │ │ ├── destroy@1.0.3│ │ │ ├── http-errors@1.3.1│ │ │ ├── ms@0.7.1│ │ │ └── statuses@1.2.1│ │ └── vary@1.0.1│ ├── lodash@2.4.2│ └─┬ swagger-ui@2.0.24│ ├── coffee-script@1.6.3│ ├─┬ handlebars@1.0.12│ │ ├── optimist@0.3.7│ │ └─┬ uglify-js@2.3.6│ │ ├── async@0.2.10│ │ └─┬ source-map@0.1.43│ │ └── amdefine@1.0.1│ ├─┬ less@1.4.2│ │ ├── mime@1.2.11│ │ ├── mkdirp@0.3.5│ │ └── ycssmin@1.0.1│ └─┬ swagger-client@2.0.36│ ├── btoa@1.1.1│ └─┬ shred@0.8.10│ ├── ax@0.1.8│ ├── cookiejar@1.3.1│ └── sprintf@0.1.1├─┬ loopback-sdk-angular-cli@1.2.0│ ├─┬ docular@0.6.6│ │ ├── colors@1.1.2│ │ ├── docular-doc-api-angular@0.0.3│ │ ├─┬ docular-doc-api-doc@0.0.8│ │ │ └── showdown@0.3.1│ │ ├─┬ express@3.21.2│ │ │ ├── commander@2.6.0│ │ │ ├── content-disposition@0.5.0│ │ │ ├── cookie@0.1.3│ │ │ ├── depd@1.0.1│ │ │ ├── escape-html@1.0.2│ │ │ ├── etag@1.7.0│ │ │ ├── fresh@0.3.0│ │ │ ├── merge-descriptors@1.0.0│ │ │ ├─┬ proxy-addr@1.0.10│ │ │ │ └── ipaddr.js@1.0.5│ │ │ ├── range-parser@1.0.3│ │ │ ├─┬ send@0.13.0│ │ │ │ ├── destroy@1.0.3│ │ │ │ ├── http-errors@1.3.1│ │ │ │ └── statuses@1.2.1│ │ │ └── vary@1.0.1│ │ ├─┬ fs-extra@2.1.1│ │ │ ├── graceful-fs@4.1.11│ │ │ └── jsonfile@2.4.0│ │ ├─┬ node.extend@1.1.6│ │ │ └── is@3.2.1│ │ ├── q@1.4.1│ │ ├─┬ q-fs@0.1.36│ │ │ ├── fs-boot@0.0.9│ │ │ ├── q@0.8.12│ │ │ └── q-io@0.0.18│ │ └─┬ q-io@1.9.4│ │ ├─┬ collections@0.1.24│ │ │ └── weak-map@1.0.0│ │ ├── mime@1.2.11│ │ ├── mimeparse@0.1.4│ │ ├── q@0.9.7│ │ ├── qs@0.1.0│ │ └── url2@0.0.0│ ├─┬ loopback-sdk-angular@1.10.2│ │ └── ejs@1.0.0│ ├─┬ optimist@0.6.1│ │ ├── minimist@0.0.8│ │ └── wordwrap@0.0.3│ └── semver@2.3.2└─┬ serve-favicon@2.4.1├── etag@1.8.0├── fresh@0.5.0├── ms@0.7.2└── parseurl@1.3.1npm WARN questionair@1.0.0 No license field.
- Here I found no ‘lb-services.js’ in /client/app/js/ directory, so let create it
1234teddy@teddy-K43SJ:~/Documents/node/questionair$ lb-ng server/server.js client/app/js/lb-services.jsLoading LoopBack app "/home/teddy/Documents/node/questionair/server/server.js"Generating "lbServices" for the API endpoint "/api"Saving the generated services source to "/home/teddy/Documents/node/questionair/client/app/js/lb-services.js"
The file ‘lb-services.js’ would be created in /client/app/js/ directory.
Then don’t forget to hook the file in /client/app/index.html file
12345...<script src="js/app.js"></script><script src="js/lb-services.js"></script><script src="js/controllers/survey.js"></script>...
NOTE: I missed this step before because I didn’t check ‘lb-services.js’ file then I got this error:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869Uncaught Error: [$injector:modulerr] Failed to instantiate module app due to:Error: [$injector:modulerr] Failed to instantiate module lbServices due to:Error: [$injector:nomod] Module 'lbServices' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.http://errors.angularjs.org/1.4.14/$injector/nomod?p0=lbServicesat http://localhost:3000/bower_components/angular/angular.js:68:12at http://localhost:3000/bower_components/angular/angular.js:2022:17at ensure (http://localhost:3000/bower_components/angular/angular.js:1946:38)at module (http://localhost:3000/bower_components/angular/angular.js:2020:14)at http://localhost:3000/bower_components/angular/angular.js:4482:22at forEach (http://localhost:3000/bower_components/angular/angular.js:341:20)at loadModules (http://localhost:3000/bower_components/angular/angular.js:4466:5)at http://localhost:3000/bower_components/angular/angular.js:4483:40at forEach (http://localhost:3000/bower_components/angular/angular.js:341:20)at loadModules (http://localhost:3000/bower_components/angular/angular.js:4466:5)http://errors.angularjs.org/1.4.14/$injector/modulerr?p0=lbServices&p1=Error%3A%20%5B%24injector%3Anomod%5D%20Module%20'lbServices'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.4.14%2F%24injector%2Fnomod%3Fp0%3DlbServices%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A68%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A2022%3A17%0A%20%20%20%20at%20ensure%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A1946%3A38)%0A%20%20%20%20at%20module%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A2020%3A14)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4482%3A22%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4483%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)at http://localhost:3000/bower_components/angular/angular.js:68:12at http://localhost:3000/bower_components/angular/angular.js:4505:15at forEach (http://localhost:3000/bower_components/angular/angular.js:341:20)at loadModules (http://localhost:3000/bower_components/angular/angular.js:4466:5)at http://localhost:3000/bower_components/angular/angular.js:4483:40at forEach (http://localhost:3000/bower_components/angular/angular.js:341:20)at loadModules (http://localhost:3000/bower_components/angular/angular.js:4466:5)at createInjector (http://localhost:3000/bower_components/angular/angular.js:4391:11)at doBootstrap (http://localhost:3000/bower_components/angular/angular.js:1693:20)at bootstrap (http://localhost:3000/bower_components/angular/angular.js:1714:12)http://errors.angularjs.org/1.4.14/$injector/modulerr?p0=app&p1=Error%3A%20%5B%24injector%3Amodulerr%5D%20Failed%20to%20instantiate%20module%20lbServices%20due%20to%3A%0AError%3A%20%5B%24injector%3Anomod%5D%20Module%20'lbServices'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.4.14%2F%24injector%2Fnomod%3Fp0%3DlbServices%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A68%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A2022%3A17%0A%20%20%20%20at%20ensure%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A1946%3A38)%0A%20%20%20%20at%20module%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A2020%3A14)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4482%3A22%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4483%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.4.14%2F%24injector%2Fmodulerr%3Fp0%3DlbServices%26p1%3DError%253A%2520%255B%2524injector%253Anomod%255D%2520Module%2520'lbServices'%2520is%2520not%2520available!%2520You%2520either%2520misspelled%2520the%2520module%2520name%2520or%2520forgot%2520to%2520load%2520it.%2520If%2520registering%2520a%2520module%2520ensure%2520that%2520you%2520specify%2520the%2520dependencies%2520as%2520the%2520second%2520argument.%250Ahttp%253A%252F%252Ferrors.angularjs.org%252F1.4.14%252F%2524injector%252Fnomod%253Fp0%253DlbServices%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A68%253A12%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A2022%253A17%250A%2520%2520%2520%2520at%2520ensure%2520(http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A1946%253A38)%250A%2520%2520%2520%2520at%2520module%2520(http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A2020%253A14)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A4482%253A22%250A%2520%2520%2520%2520at%2520forEach%2520(http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A341%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A4466%253A5)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A4483%253A40%250A%2520%2520%2520%2520at%2520forEach%2520(http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A341%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A4466%253A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A68%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4505%3A15%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4483%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0A%20%20%20%20at%20createInjector%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4391%3A11)%0A%20%20%20%20at%20doBootstrap%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A1693%3A20)%0A%20%20%20%20at%20bootstrap%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A1714%3A12)at http://localhost:3000/bower_components/angular/angular.js:68:12at http://localhost:3000/bower_components/angular/angular.js:2022:17at ensure (http://localhost:3000/bower_components/angular/angular.js:1946:38)at module (http://localhost:3000/bower_components/angular/angular.js:2020:14)at http://localhost:3000/bower_components/angular/angular.js:4482:22at forEach (http://localhost:3000/bower_components/angular/angular.js:341:20)at loadModules (http://localhost:3000/bower_components/angular/angular.js:4466:5)at http://localhost:3000/bower_components/angular/angular.js:4483:40at forEach (http://localhost:3000/bower_components/angular/angular.js:341:20)at loadModules (http://localhost:3000/bower_components/angular/angular.js:4466:5)http://errors.angularjs.org/1.4.14/$injector/modulerr?p0=lbServices&p1=Error%3A%20%5B%24injector%3Anomod%5D%20Module%20'lbServices'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.4.14%2F%24injector%2Fnomod%3Fp0%3DlbServices%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A68%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A2022%3A17%0A%20%20%20%20at%20ensure%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A1946%3A38)%0A%20%20%20%20at%20module%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A2020%3A14)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4482%3A22%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4483%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)at http://localhost:3000/bower_components/angular/angular.js:68:12at http://localhost:3000/bower_components/angular/angular.js:4505:15at forEach (http://localhost:3000/bower_components/angular/angular.js:341:20)at loadModules (http://localhost:3000/bower_components/angular/angular.js:4466:5)at http://localhost:3000/bower_components/angular/angular.js:4483:40at forEach (http://localhost:3000/bower_components/angular/angular.js:341:20)at loadModules (http://localhost:3000/bower_components/angular/angular.js:4466:5)at createInjector (http://localhost:3000/bower_components/angular/angular.js:4391:11)at doBootstrap (http://localhost:3000/bower_components/angular/angular.js:1693:20)at bootstrap (http://localhost:3000/bower_components/angular/angular.js:1714:12)http://errors.angularjs.org/1.4.14/$injector/modulerr?p0=app&p1=Error%3A%20%5B%24injector%3Amodulerr%5D%20Failed%20to%20instantiate%20module%20lbServices%20due%20to%3A%0AError%3A%20%5B%24injector%3Anomod%5D%20Module%20'lbServices'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.4.14%2F%24injector%2Fnomod%3Fp0%3DlbServices%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A68%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A2022%3A17%0A%20%20%20%20at%20ensure%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A1946%3A38)%0A%20%20%20%20at%20module%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A2020%3A14)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4482%3A22%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4483%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.4.14%2F%24injector%2Fmodulerr%3Fp0%3DlbServices%26p1%3DError%253A%2520%255B%2524injector%253Anomod%255D%2520Module%2520'lbServices'%2520is%2520not%2520available!%2520You%2520either%2520misspelled%2520the%2520module%2520name%2520or%2520forgot%2520to%2520load%2520it.%2520If%2520registering%2520a%2520module%2520ensure%2520that%2520you%2520specify%2520the%2520dependencies%2520as%2520the%2520second%2520argument.%250Ahttp%253A%252F%252Ferrors.angularjs.org%252F1.4.14%252F%2524injector%252Fnomod%253Fp0%253DlbServices%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A68%253A12%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A2022%253A17%250A%2520%2520%2520%2520at%2520ensure%2520(http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A1946%253A38)%250A%2520%2520%2520%2520at%2520module%2520(http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A2020%253A14)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A4482%253A22%250A%2520%2520%2520%2520at%2520forEach%2520(http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A341%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A4466%253A5)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A4483%253A40%250A%2520%2520%2520%2520at%2520forEach%2520(http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A341%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(http%253A%252F%252Flocalhost%253A3000%252Fbower_components%252Fangular%252Fangular.js%253A4466%253A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A68%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4505%3A15%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4483%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0A%20%20%20%20at%20createInjector%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4391%3A11)%0A%20%20%20%20at%20doBootstrap%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A1693%3A20)%0A%20%20%20%20at%20bootstrap%20(http%3A%2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A1714%3A12)at http://localhost:3000/bower_components/angular/angular.js:68:12at http://localhost:3000/bower_components/angular/angular.js:4505:15at forEach (http://localhost:3000/bower_components/angular/angular.js:341:20)at loadModules (http://localhost:3000/bower_components/angular/angular.js:4466:5)at createInjector (http://localhost:3000/bower_components/angular/angular.js:4391:11)at doBootstrap (http://localhost:3000/bower_components/angular/angular.js:1693:20)at bootstrap (http://localhost:3000/bower_components/angular/angular.js:1714:12)at angularInit (http://localhost:3000/bower_components/angular/angular.js:1608:5)at HTMLDocument.<anonymous> (http://localhost:3000/bower_components/angular/angular.js:29847:5)at mightThrow (http://localhost:3000/bower_components/jquery/dist/jquery.js:3570:29)(anonymous) @ angular.js:68(anonymous) @ angular.js:4505forEach @ angular.js:341loadModules @ angular.js:4466createInjector @ angular.js:4391doBootstrap @ angular.js:1693bootstrap @ angular.js:1714angularInit @ angular.js:1608(anonymous) @ angular.js:29847mightThrow @ jquery.js:3570process @ jquery.js:3638
- Now let run the node server
123teddy@teddy-K43SJ:~/Documents/node/questionair$ node .Browse your REST API at http://0.0.0.0:3000/explorerWeb server listening at: http://0.0.0.0:3000/
Then open it on our browser: http://localhost:3000/
Nothing found there because this app still haven’t completed yet.
The main controller ‘questionairController’ is in /client/app/index.html file. We need to call it in /client/app/js/app.js file like this
1234567891011var app = angular.module('app', ['ngResource','lbServices']);app.controller('questionairController', function($scope, $http, Question) {console.log(Question.find());});
The parameter ‘Question’ we found from /server/model-config.json file. It represent ‘Question’ table. Also look the table structure in /server/models/question.json. There are also the others tables like ‘Answer’, ‘Role’, etc.