ui-router / sample-app-angularjs Goto Github PK
View Code? Open in Web Editor NEWUI-Router for AngularJS - Sample Application
Home Page: http://ui-router.github.io/sample-app-angularjs/#/mymessages/inbox/5648b50cc586cac4aed6836f
UI-Router for AngularJS - Sample Application
Home Page: http://ui-router.github.io/sample-app-angularjs/#/mymessages/inbox/5648b50cc586cac4aed6836f
I'm using webpack's uglifyjs plugin. The code doesn't work if I have the plugins mangle option set to true. I'm getting an injector provider error on build due to the code not being min-safe. I understand why its happening but I can't figure out the necessary steps needed to not make it happen. I'd imagine the primary root cause would be within ngmodule.js where we actually load everything up.
🚨 You need to enable Continuous Integration on all branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial
branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.
I have download the source code, it looks great, very clear. Then I moved it my local nginx/apache , ready for some action but it is not working. I have tried npm install and yarn install but not successful.
Finally "yarn build" is the one.
I know this question is kinda dummy but it would be nice if we have some small guide section for building this sample
🚨 You need to enable Continuous Integration on all branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial
branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.
Hi i'm triying to implemente the redirectTo mehtod to a state that has a component, but i can't get it working i don't know where does the $transition$.previous();
should come.
this is my state:
.state('app.login', {
url: '/login',
views: {
'main@': {
templateUrl: getView('login'),
resolve: { returnTo: returnTo }
}
},
})
it never calls the function to resolve.
enable/disable statevis.
Could you please revise committed settings?
Steps I take:
$ npm install
$ npm run dev
(BTW: inconsistency between branches: dev
vs. start
in master
branch)http://localhost:3000
, got following error:Unhandled Promise rejection: (SystemJS) Unable to dynamically transpile ES module as SystemJS.transpiler set to false.
true
in config.js
, I get: Unhandled Promise rejection: (SystemJS) name.lastIndexOf is not a function
If it's my fault and I'm doing sth wrong, perhaps writing a short note on running the stuff in README.md
could help.
https://github.com/angular-ui/ui-router
Sample app link points to here
https://github.com/angular-ui/ui-router/blob/master/ui-router.github.io/sample-app
Which returns a 404
Create a reset data function that clears the SessionStorage data
Depends on #6 obviously
hi! nice Stuff!! thanK yoU !
git clone https://github.com/christopherthielen/new-state-vis.git
npm install && jspm install
....
Looking up npm:typescript
Looking up npm:ui-router-extras
Updating registry cache...
err TypeError: Arguments to path.resolve must be strings
at Object.posix.resolve (path.js:439:13)
Never used, jspm before - NICE!
0.16.0-beta.7
Running against local jspm install.
Made it work with:
jspm install github:angular/bower-angular@^1.4.7 github:angular-ui/ui-router@^0.2.15 github:mbostock/d3@^3.5.6 github:mbostock/d3 npm:typescript@^1.6.2
Select app.contacts
from the dropdown, then select mymessages
mymessages
redirects to mymessages.folder
, but then the message: Error: [$injector:unpr] Unknown provider: messagesProvider <- messages
appears.
However, clicking directly to mymessages.folder
seems to work OK.
Any chance of getting a working lazy load example? the docs are that detailed
Allow selectable layouts, one for desktop and one for mobile
Hi all,
There is some issue i am facing in state navigation , i have two module lets say main module and list module.where list module is child of main module and getting loaded lazily.
but when i am trying to change the state from child module to parent module its not happening.
below is the snippet of code i am trying to do.
const mainState = {
name: "main",
url: "/main",
isLoginRequired: true,
component: "mainComponent"
};
const homeState = {
parent: 'main',
name: "home",
url: '/home',
component: "homeComponent",
isLoginRequired: true,
lazyLoad: (
return moduleResolver(
import('../home/home.module'), 'HOME_MODULE');
}
};
const canvasListState = {
parent: 'main',
name: "canvasList.**",
url: '/canvas-list/:projectCode?viewType',
component: "listComponent",
isLoginRequired: true,
lazyLoad: (
return moduleResolver(
import('../canvas/list/list.module'), 'LIST_MODULE');
}
};
canvaslist module route
const canvasListState = {
parent: 'main',
name: "canvasList",
url: "/canvas-list/:projectCode?viewType",
params: {
redirecturi: null,
projectCode: null,
viewType: null
},
accessCode: ENUM.ACCESS_CONTROL_LIST.CANVAS_VIEW,
component: "listComponent"
};
now from listComponent if i am saying $state.go('main.drawCanvas.compose').then its not navigating anymore.but if i say $state.go('main') then navigation is getting triggered.
Would it be possible to update the libraries to point to the latest versions for the hybrid app? I'm having a few issues doing so
Add a configurable fetch delay for Messages and Contacts service methods
// import "../global/global.module";
// import "../main/main.module";
// import "../contacts/contacts.module";
// import "../mymessages/mymessages.module";
// import "../prefs/prefs.module";
// Google analytics
import '../util/ga';
just import '../util/ga' , the application can also work , and build smaller chunk
It looks like js code related to the contacts module is not fetched just-in-time (on a click to Contacts), as documented.
There's no associated query visible in the networking tab of my browser.
Is that normal ?
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.