Questions tagged [angularjs-routing]

Use for ngRoute, the built-in routing module in AngularJS, which can map the browser URL to a defined route.

Is used for deep-linking URLs to controllers and views (HTML partials).
It watches $location.url() and tries to map the path to an existing route definition.

Routes can be defined through the $routeProvider API. The $route service is typically used in conjunction with ngView directive and the $routeParams service.

See:

Related tags

1283 questions
-1
votes
1 answer

How to handle "complex" logic in route.resolve in AngularJS

Currently in some of my controllers I have a logic that e.g. redirects user to a different route if some conditions are met. I'm trying to move some of this logic from controllers to route.resolve to prevent showing the "invalid" view and then…
szimek
  • 6,404
  • 5
  • 32
  • 36
-1
votes
1 answer

Sharing a webservice's data across controllers in AngularJS

I have 2 big issues with an Angular app, I'm completely stuck and hoping someone out there can help me. My method of sharing data from a web-service out to multiple controllers is flawed and I don't know how to fix it. My directives sporadically…
-2
votes
2 answers

Angularjs Routing Parameter passing to controller

Below code is not working for parameter passing
  • {{langResources.EditReservation}}
  • when click this link…
    -2
    votes
    1 answer

    angular.js:4640Uncaught Error: [$injector:modulerr] got this error

    The above error i am getting when i run angularjs route simple application. I made separate folder for partial template. only three files are there that contains simple headings. below code for route.html …
    user993164
    • 157
    • 3
    • 15
    -2
    votes
    1 answer

    populating an array using a form and displaying the array in separate views angularjs

    I am in the process of learning AngularJS and Ionic to create an app for a semester project, but I am having trouble finding a resource to show me how to solve my problem, so I am calling all NG and Ionic pros out there: I am trying add an event to…
    -2
    votes
    1 answer

    Angular and ngRoute; Open in New Window

    I'm looking for a way to use ngRouting to open a template in a new window. I have an ng-view div set up in my index page that allows me to populate the data in my central page, but if the user chooses to open a link in a new window/tab, the page…
    -2
    votes
    1 answer

    resolve in angularjs not working

    I would like to load my data before the route changes and using $routeChangeSuccess or $routeChangeStart will not help and would like to do it using resolve in angular routing. So when ever a route change, i use resolve and load the data and…
    narcs
    • 213
    • 1
    • 2
    • 13
    -4
    votes
    1 answer

    AngularJS module routing with material design CSS issue

    I will try to integrate material design with routing in angular js, but CSS design is not working. If I will check using bootstrap CSS, it's working. Plnker Demo If I will try this way it has given me error like var scotchApp =…
    Sender
    • 6,660
    • 12
    • 47
    • 66
    1 2 3
    85
    86