GithubHelp home page GithubHelp logo

ui-router / sample-app-angularjs Goto Github PK

View Code? Open in Web Editor NEW
240.0 12.0 104.0 7.27 MB

UI-Router for AngularJS - Sample Application

Home Page: http://ui-router.github.io/sample-app-angularjs/#/mymessages/inbox/5648b50cc586cac4aed6836f

CSS 6.48% JavaScript 91.78% HTML 1.07% Shell 0.66%

sample-app-angularjs's Issues

Build process fails when attempting to mangle the code base

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.

Action required: Greenkeeper could not be activated 🚨

🚨 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.

How to build this one...

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

Action required: Greenkeeper could not be activated 🚨

🚨 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.

Implement redirect on component

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.

Problems with running the app locally on hybrid-angular1-angular2 branch

Could you please revise committed settings?

Steps I take:

  1. $ npm install
  2. $ npm run dev (BTW: inconsistency between branches: dev vs. start in master branch)
  3. Opened http://localhost:3000, got following error:
    Unhandled Promise rejection: (SystemJS) Unable to dynamically transpile ES module as SystemJS.transpiler set to false.
  4. After changing in to 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.

demo setup problem

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

'messages' doesn't inject properly

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.

Lazy Load example

Any chance of getting a working lazy load example? the docs are that detailed

state navigation not happening

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.

main module route

const mainState = {
name: "main",
url: "/main",
isLoginRequired: true,
component: "mainComponent"
};
const homeState = {
parent: 'main',
name: "home",
url: '/home',
component: "homeComponent",
isLoginRequired: true,
lazyLoad: ($transition$) => {
return moduleResolver($transition$, () =>
import('../home/home.module'), 'HOME_MODULE');
}
};

const canvasListState = {
parent: 'main',
name: "canvasList.**",
url: '/canvas-list/:projectCode?viewType',
component: "listComponent",
isLoginRequired: true,
lazyLoad: ($transition$) => {
return moduleResolver($transition$, () =>
import('../canvas/list/list.module'), 'LIST_MODULE');
}
};

const drawCanvasState = {
parent: "main",
name: "drawCanvas.**",
url: '/draw-canvas',
lazyLoad: ($transition$) => {
return moduleResolver($transition$, () =>
import('../canvas/draw/draw.module'), 'DRAW_CANVAS_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.

Update libraries

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

why import all module in bootstrap.js ?

// 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

Lazy load not visible in networking

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 ?

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.