All Questions

Filter by
Sorted by
Tagged with
1
vote
1answer
97 views

Changing value of $scope on ng-click with ui-sref

This is absolutely killing me. This is where I'm at: And when I arrive to this page it prints this into the console: Then I click on lorem2 which as a ng-click thats supposed to change the ...
0
votes
2answers
134 views

AngularJS - ui-routing with ng-click not working properly

I'm using ui-router for creating some routes and I'm getting this very weird thing happening. I have this route config .state('chapter_route', { url: '/book/:chap', templateUrl: "views/...
0
votes
0answers
21 views

ui-router : How to Make Child State's URL refreshable

TL;DR I have a modal state that I want to have a refreshable link. The modal state is opened with ng-click and ng-show. How can I make this modal linkable? I have a modal window that I've given a ...
0
votes
0answers
353 views

Angular ui-router: How to get URL parameters working with ng-click

I'm having trouble figuring out how to pass a URL parameter through an ng-click to $state.go. Controller angular.module('app').controller('screeningsController', ['$scope', '$state', '$stateParams', ...
0
votes
1answer
201 views

I can't navigate to state ui router from address bar

I have a problem navigating to a state from the address bar or when i refresh the current state. i have the following code: Controller: $scope.selectCategory = function(category) { $location....
0
votes
0answers
77 views

Can access response inside ng-click with ui route

I have a problem. Im confused because value from ng-model and ng-click can used inside templateUrl ui router. So, I have a template , example : thread.html. There are ng-click inside thread.html. So ...
1
vote
2answers
1k views

Redirect to UI-Route after Login Successfully

How to redirect to Home Page after Login successful, I am using UI-router and below is my ui-router code. var myrouting=angular.module('routingDemoApp', ['ui.router']) myrouting.config(['$...
3
votes
1answer
6k views

$state.go is not a function

I'm doing a web app with AngularJs and I'm using $state to travel into the app. After the login, I want to go to the home (state 'app.dashboard.home' of the absolute state 'app.dashboard). In this ...
0
votes
0answers
221 views

Debugging ng-click not firing with ui-view

I have an Angular app which uses 'ngCookies', 'oc.lazyLoad', 'ui.router', 'ui.bootstrap' and 'angular-loading-bar'. Its config works with $stateProvider where all the views and nested views are ...
0
votes
1answer
939 views

Submit button that redirects to another page with ui-router

I am using AngularJS ui-router to go to different pages. I have a button that submits a form but I also want it to take me to a different page upon submission. So I tried to do something like this: ...
0
votes
3answers
84 views

Connecting ng-click to controller function

I am having trouble getting a partial's div's ng-click attribute to fire the function I want, called testDivClicked(). In my application controller, I provide a route to a partial called test: (...
0
votes
2answers
574 views

AngularJS Button to reload state does not work

I want to have a button on the front end (AngularJS) that refreshes the changes made to the database. I have tried the following in the html: <button ng-click="reloadState" data-translate> ...
-1
votes
1answer
576 views

ng-click inside ui-router not firing

i have a ngClick that is not firing. this is my view: <div ng-repeat="(key,val) in user[docParam]"> {{key}}<input type='text' class="form-control" name="{{key}}" ng-model="user[...
2
votes
2answers
3k views

Disable ng-click from outside element on link inside

I have a site using ui-router where I have a table and I have an ng-click on the cells, but have a link inside the cell. I need to disable the ng-click from the cell, when the link is clicked. <...
2
votes
1answer
4k views

How to navigate to different pages using ui-route with angularjs?

I have used tabs and routed pages with ui-router, now i have changed the layout and having buttons in the side navigation panel to route to different pages on button click. No idea how to go after ...
1
vote
0answers
869 views

Focus style sticking to button with ng-click directive

I have a problem with my buttons staying focused even after I've clicked on them in my angular app. We are running angular 1.2 with angular-ui-router 0.2. The problem seems to occur both on buttons ...