gothinkster / angularjs-realworld-example-app Goto Github PK
View Code? Open in Web Editor NEWExemplary real world application built with Angular 1.5 + ES6
Home Page: https://angularjs.realworld.io
Exemplary real world application built with Angular 1.5 + ES6
Home Page: https://angularjs.realworld.io
Good day. May be you help me. I use this code base in my application. I have a problem. How to call controller method in other js file and send some data to him ?
main.js:19066 Error: transition superseded(…) "Possibly unhandled rejection: {}"(anonymous function) @ main.js:19066
main.js:19066 Error: transition prevented(…) "Possibly unhandled rejection: {}"(anonymous function) @ main.js:19066
main.js:19066 Error: transition aborted(…) "Possibly unhandled rejection: {}"(anonymous function) @ main.js:19066
main.js:19066 Error: transition failed(…) "Possibly unhandled rejection: {}"(anonymous function) @ main.js:19066
main.js:19066 TypeError: Cannot read property 'type' of undefined(…)(anonymous function) @ main.js:19066
They seem to come from Angulars core module.
Hey there,
When trying to visit the live API server a redirect to https://api.realworld.io/api occurs and a 404 response is returned with the following error shown:
Cannot GET /api
I was trying to run this against a locally running node-express-realworld-example-app. When I do gulp
, the articles don't load, and I get the following console error:
Error: transition superseded
at $StateProvider.$get (main.js:2904)
at Object.invoke (main.js:9544)
at main.js:9336
at getService (main.js:9485)
at injectionArgs (main.js:9510)
at Object.invoke (main.js:9536)
at main.js:12651
at forEach (main.js:4944)
at Object.<anonymous> (main.js:12649)
at Object.invoke (main.js:9544) "Possibly unhandled rejection: {}"
Steps to setup backend:
git clone https://github.com/gothinkster/node-express-realworld-example-app
cd node-express-realworld-example-app
yarn
export NODE_ENV=production
export MONGODB_URI=mongodb://mongo:[email protected]:17821/try-mongodb
export SECRET=secret
node ./app.js
# ... Verified localhost:3000/api with Postman tests
To fix error
const { Math, Object } = primordials;
ReferenceError: primordials is not defined
add
npm-shrinkwrap.json
with
{
"dependencies": {
"graceful-fs": {
"version": "4.2.2"
}
}
}
when use gulp I got the below error
ReferenceError: primordials is not defined
at fs.js:27:26
at req_ (C:\Users\Sávio Oliveira\Downloads\Compressed\angularjs-realworld-example-app-master\node_modules\natives\index.js:143:24)
at Object.req [as require] (C:\Users\Sávio Oliveira\Downloads\Compressed\angularjs-realworld-example-app-master\node_modules\natives\index.js:55:10)
at Object. (C:\Users\Sávio Oliveira\Downloads\Compressed\angularjs-realworld-example-app-master\node_modules\vinyl-fs\node_modules\graceful-fs\fs.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:868:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:879:10)
at Module.load (internal/modules/cjs/loader.js:731:32)
at Function.Module._load (internal/modules/cjs/loader.js:644:12)
at Module.require (internal/modules/cjs/loader.js:771:19)
at require (internal/modules/cjs/helpers.js:68:18)
gulp -v
CLI version: 2.2.0
Local version: 3.9.0
how can i fix the error
It automatically logs out when I log in. I was just created my account. I can see my profile on top right. But after page loaded it logs me out.
Angular 1.6 is breaking UI-Router, so I'm thinking we'll just lock this in at 1.5 for the time being.
Hi
I use this command git clone -b 00-seed [email protected]:gothinkster/productionready-angularjs-client.git to download your project but I got this error
Cloning into 'productionready-angularjs-client'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Best regards
Ran
After running gulp
, I get this error message below in Chrome console. Any thoughts on how to fix this?
main.js:19241 Error: transition superseded
at $StateProvider.$get (main.js:2904)
at Object.invoke (main.js:9581)
at main.js:9373
at getService (main.js:9522)
at injectionArgs (main.js:9547)
at Object.invoke (main.js:9573)
at main.js:12739
at forEach (main.js:4951)
at Object.<anonymous> (main.js:12737)
at Object.invoke (main.js:9581) "Possibly unhandled rejection: {}"
Error: transition aborted
at $StateProvider.$get (main.js:2906)
at Object.invoke (main.js:9581)
at main.js:9373
at getService (main.js:9522)
at injectionArgs (main.js:9547)
at Object.invoke (main.js:9573)
at main.js:12739
at forEach (main.js:4951)
at Object.<anonymous> (main.js:12737)
at Object.invoke (main.js:9581) "Possibly unhandled rejection: {}"
Error: transition failed
at $StateProvider.$get (main.js:2907)
at Object.invoke (main.js:9581)
at main.js:9373
at getService (main.js:9522)
at injectionArgs (main.js:9547)
at Object.invoke (main.js:9573)
at main.js:12739
at forEach (main.js:4951)
at Object.<anonymous> (main.js:12737)
at Object.invoke (main.js:9581) "Possibly unhandled rejection: {}"
Hey there,
When trying to visit the live API server a redirect to https://api.realworld.io/api occurs and a 404 response is returned with the following error shown:
Cannot GET /api
Why in package.json no script "dev" definition?
I'm getting the error: missing script: dev
Pushing Eugene.Konneh
Error encountered while pushing branch to the remote repository: Git failed with a fatal error.
unable to access 'https://github.com/gothinkster/angularjs-realworld-example-app.git/': The requested URL returned error: 403
Pushing to https://github.com/gothinkster/angularjs-realworld-example-app.git
This is what is logged to the console when I follow the build instructions. Is it something I can safely ignore?
`Error: transition superseded
$get@http://localhost:4000/main.js:2904:42
invoke@http://localhost:4000/main.js:9383:16
createInjector/protoInstanceInjector<@http://localhost:4000/main.js:9177:20
getService@http://localhost:4000/main.js:9324:32
injectionArgs@http://localhost:4000/main.js:9349:58
invoke@http://localhost:4000/main.js:9375:18
registerDirective/</<@http://localhost:4000/main.js:12484:33
forEach@http://localhost:4000/main.js:4898:11
registerDirective/<@http://localhost:4000/main.js:12482:13
invoke@http://localhost:4000/main.js:9383:16
enforcedReturnValue@http://localhost:4000/main.js:9217:20
invoke@http://localhost:4000/main.js:9383:16
createInjector/protoInstanceInjector<@http://localhost:4000/main.js:9177:20
getService@http://localhost:4000/main.js:9324:32
addDirective@http://localhost:4000/main.js:14341:42
collectDirectives@http://localhost:4000/main.js:13548:13
compileNodes@http://localhost:4000/main.js:13341:22
compileNodes@http://localhost:4000/main.js:13357:15
compileNodes@http://localhost:4000/main.js:13357:15
compileNodes@http://localhost:4000/main.js:13357:15
compile@http://localhost:4000/main.js:13226:15
bootstrapApply/<@http://localhost:4000/main.js:6384:11
$RootScopeProvider/this.$get</Scope.prototype.$eval@http://localhost:4000/main.js:22513:16
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://localhost:4000/main.js:22613:20
bootstrapApply@http://localhost:4000/main.js:6382:9
invoke@http://localhost:4000/main.js:9383:16
bootstrap/doBootstrap@http://localhost:4000/main.js:6380:5
bootstrap@http://localhost:4000/main.js:6400:12
[5]<@http://localhost:4000/main.js:38880:1
s@http://localhost:4000/main.js:1:246
e@http://localhost:4000/main.js:1:425
@http://localhost:4000/main.js:1:11
Possibly unhandled rejection: {} main.js:18869:18
Error: transition prevented
$get@http://localhost:4000/main.js:2905:41
invoke@http://localhost:4000/main.js:9383:16
createInjector/protoInstanceInjector<@http://localhost:4000/main.js:9177:20
getService@http://localhost:4000/main.js:9324:32
injectionArgs@http://localhost:4000/main.js:9349:58
invoke@http://localhost:4000/main.js:9375:18
registerDirective/</<@http://localhost:4000/main.js:12484:33
forEach@http://localhost:4000/main.js:4898:11
registerDirective/<@http://localhost:4000/main.js:12482:13
invoke@http://localhost:4000/main.js:9383:16
enforcedReturnValue@http://localhost:4000/main.js:9217:20
invoke@http://localhost:4000/main.js:9383:16
createInjector/protoInstanceInjector<@http://localhost:4000/main.js:9177:20
getService@http://localhost:4000/main.js:9324:32
addDirective@http://localhost:4000/main.js:14341:42
collectDirectives@http://localhost:4000/main.js:13548:13
compileNodes@http://localhost:4000/main.js:13341:22
compileNodes@http://localhost:4000/main.js:13357:15
compileNodes@http://localhost:4000/main.js:13357:15
compileNodes@http://localhost:4000/main.js:13357:15
compile@http://localhost:4000/main.js:13226:15
bootstrapApply/<@http://localhost:4000/main.js:6384:11
$RootScopeProvider/this.$get</Scope.prototype.$eval@http://localhost:4000/main.js:22513:16
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://localhost:4000/main.js:22613:20
bootstrapApply@http://localhost:4000/main.js:6382:9
invoke@http://localhost:4000/main.js:9383:16
bootstrap/doBootstrap@http://localhost:4000/main.js:6380:5
bootstrap@http://localhost:4000/main.js:6400:12
[5]<@http://localhost:4000/main.js:38880:1
s@http://localhost:4000/main.js:1:246
e@http://localhost:4000/main.js:1:425
@http://localhost:4000/main.js:1:11
Possibly unhandled rejection: {} main.js:18869:18
Error: transition aborted
$get@http://localhost:4000/main.js:2906:39
invoke@http://localhost:4000/main.js:9383:16
createInjector/protoInstanceInjector<@http://localhost:4000/main.js:9177:20
getService@http://localhost:4000/main.js:9324:32
injectionArgs@http://localhost:4000/main.js:9349:58
invoke@http://localhost:4000/main.js:9375:18
registerDirective/</<@http://localhost:4000/main.js:12484:33
forEach@http://localhost:4000/main.js:4898:11
registerDirective/<@http://localhost:4000/main.js:12482:13
invoke@http://localhost:4000/main.js:9383:16
enforcedReturnValue@http://localhost:4000/main.js:9217:20
invoke@http://localhost:4000/main.js:9383:16
createInjector/protoInstanceInjector<@http://localhost:4000/main.js:9177:20
getService@http://localhost:4000/main.js:9324:32
addDirective@http://localhost:4000/main.js:14341:42
collectDirectives@http://localhost:4000/main.js:13548:13
compileNodes@http://localhost:4000/main.js:13341:22
compileNodes@http://localhost:4000/main.js:13357:15
compileNodes@http://localhost:4000/main.js:13357:15
compileNodes@http://localhost:4000/main.js:13357:15
compile@http://localhost:4000/main.js:13226:15
bootstrapApply/<@http://localhost:4000/main.js:6384:11
$RootScopeProvider/this.$get</Scope.prototype.$eval@http://localhost:4000/main.js:22513:16
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://localhost:4000/main.js:22613:20
bootstrapApply@http://localhost:4000/main.js:6382:9
invoke@http://localhost:4000/main.js:9383:16
bootstrap/doBootstrap@http://localhost:4000/main.js:6380:5
bootstrap@http://localhost:4000/main.js:6400:12
[5]<@http://localhost:4000/main.js:38880:1
s@http://localhost:4000/main.js:1:246
e@http://localhost:4000/main.js:1:425
@http://localhost:4000/main.js:1:11
Possibly unhandled rejection: {} main.js:18869:18
Error: transition failed
$get@http://localhost:4000/main.js:2907:38
invoke@http://localhost:4000/main.js:9383:16
createInjector/protoInstanceInjector<@http://localhost:4000/main.js:9177:20
getService@http://localhost:4000/main.js:9324:32
injectionArgs@http://localhost:4000/main.js:9349:58
invoke@http://localhost:4000/main.js:9375:18
registerDirective/</<@http://localhost:4000/main.js:12484:33
forEach@http://localhost:4000/main.js:4898:11
registerDirective/<@http://localhost:4000/main.js:12482:13
invoke@http://localhost:4000/main.js:9383:16
enforcedReturnValue@http://localhost:4000/main.js:9217:20
invoke@http://localhost:4000/main.js:9383:16
createInjector/protoInstanceInjector<@http://localhost:4000/main.js:9177:20
getService@http://localhost:4000/main.js:9324:32
addDirective@http://localhost:4000/main.js:14341:42
collectDirectives@http://localhost:4000/main.js:13548:13
compileNodes@http://localhost:4000/main.js:13341:22
compileNodes@http://localhost:4000/main.js:13357:15
compileNodes@http://localhost:4000/main.js:13357:15
compileNodes@http://localhost:4000/main.js:13357:15
compile@http://localhost:4000/main.js:13226:15
bootstrapApply/<@http://localhost:4000/main.js:6384:11
$RootScopeProvider/this.$get</Scope.prototype.$eval@http://localhost:4000/main.js:22513:16
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://localhost:4000/main.js:22613:20
bootstrapApply@http://localhost:4000/main.js:6382:9
invoke@http://localhost:4000/main.js:9383:16
bootstrap/doBootstrap@http://localhost:4000/main.js:6380:5
bootstrap@http://localhost:4000/main.js:6400:12
[5]<@http://localhost:4000/main.js:38880:1
s@http://localhost:4000/main.js:1:246
e@http://localhost:4000/main.js:1:425
@http://localhost:4000/main.js:1:11
Possibly unhandled rejection: {} main.js:18869:18
Error: this.listConfig is undefined
runQuery@http://localhost:4000/main.js:39306:9
setListTo@http://localhost:4000/main.js:39287:7
ArticleListCtrl@http://localhost:4000/main.js:39267:5
invoke@http://localhost:4000/main.js:9383:16
$controllerInit@http://localhost:4000/main.js:15236:24
nodeLinkFn@http://localhost:4000/main.js:14113:35
compileTemplateUrl/<@http://localhost:4000/main.js:14521:13
processQueue@http://localhost:4000/main.js:21189:37
scheduleProcessQueue/<@http://localhost:4000/main.js:21233:27
$RootScopeProvider/this.$get</Scope.prototype.$eval@http://localhost:4000/main.js:22513:16
$RootScopeProvider/this.$get</Scope.prototype.$digest@http://localhost:4000/main.js:22327:15
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://localhost:4000/main.js:22621:13
bootstrapApply@http://localhost:4000/main.js:6382:9
invoke@http://localhost:4000/main.js:9383:16
bootstrap/doBootstrap@http://localhost:4000/main.js:6380:5
bootstrap@http://localhost:4000/main.js:6400:12
[5]<@http://localhost:4000/main.js:38880:1
s@http://localhost:4000/main.js:1:246
e@http://localhost:4000/main.js:1:425
@http://localhost:4000/main.js:1:11
main.js:18869:18`
Hi there, it seems that there is an issue with the article-list, comment and article-actions components. The binding values from the components are not accessible in the controllers. Any ideea of a solution?
Is this possible?
How do I go about adding an external library? For instance I'm trying to add this library:
https://github.com/skeymeulen/swangular
I've seen example using bower
to manage dependencies. However, the way this project is set up, I don't see a way to easy add a new external dependency.
How would you go about doing this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.