0
votes
3answers
21 views

Can we make two router.js file in a single angular project?

I am having a situation in my Angular UI routing project while rendering the view. Situation is that I have to make two router.js file.Is it possible to have two router.js file in same project. What ...
0
votes
2answers
52 views

How to open $state,go() in new tab

I am trying to open a state in newtab but not able to achieven it. I am doing so using $state,go function. I tried the below code too which was succesful and opend my url in newtab but browser is ...
0
votes
1answer
31 views

I am trying to make a simple shopping cart but im struck at adding products to cart?

I'm new to angular ,I'm trying to develop a simple shopping cart, I have just created list of products but I'm not getting how I would add them to cart? here is my plunker link:https://plnkr.co/edit/...
0
votes
2answers
20 views

How to open a angularJS modal when the url has a queryString

I want to develop a web site. I want to open a $uiModal when the url has a querystring. If the query string is not there then no modal is oepn. The code is: myApp.controller('jobObjectiveController', ...
2
votes
0answers
58 views

Angular JS UI-Router Reload on Same Page Issue and Open Link in New Tab

I have a Navbar in my Main Page.Whenever I right click on any link (exp:Add Company) and open it in New Tab, it shows the dashboard page in new tab and also when i am on Add Company or Update Company ...
1
vote
1answer
50 views

How to fix yyyy is not a function when changing pages in Angular?

I have an Angular app that uses Videojs plugin to add markers on video. Everything works, except when going from one page to another, I get the error: player.markers is not a function. It works again ...
0
votes
1answer
22 views

Selecting element generated by Angular using JQuery

Below is a snippet of my code: <body> <div class="body" ng-view></div> <div class="footer" ng-view="footer"></div> </body> The following HTML is being added ...
0
votes
2answers
152 views

Why do I have an 'failed to initiate app' error because of jQuery?

I am using angular and I am getting the failed to initiate app error as it seems because of my jQuery script. I have no idea what is causing it. I included script tags for angular, jQuery, ui-router ...
1
vote
3answers
48 views

Angular ui.router Reload Template

First of all, I'm sorry for a long question, but it just has to be like that. Unfortunately... I have a couple of templates and a couple of routing logic, all linked in separate files. For some ...
0
votes
1answer
39 views

UI-Router (resolve) cant pass data into controller

when i run code like this my controller stops working and it happens with all kinds of data passed with resolve, from api or any other way.. i just cant pass anything to my controller > $...
0
votes
1answer
79 views

Cannot Resolve State with ui router

I'm trying to use ui router to set states after I pulled pages from a database, but It came up with this error every time I'm trying to click on a sref-link. Here are the app/app.js and the app/index....
0
votes
2answers
50 views

how can i prevent to show bootstrap popover sometime in angularJs

I use bootstrap popover in custom angularJs directive . i will show error message when $scope.buytypeButton= {type:false} button should disabled and show error message in popover . but i want when $...
-1
votes
1answer
631 views

jQuery Syntax error, unrecognized expression using Angular, Angular UI-Router and Materialize Together

I'm using several libraries with this project. The one that is complaining is jQuery. I'm not sure that jQuery is actually the culprit here. I've tried several different methods to get the desired ...
1
vote
3answers
69 views

UI-Router: How to preserve views while switching views

I'm developing a webapp with angular 1.x and ui-router 0.3.x. When I switch to a new view state, corresponding controller will be instantiated (data state will be reset). As you can see from the ...
1
vote
1answer
1k views

UI-Router: param values not valid for state

the github repo for this question Im absolutely hopeless. I create a angular 1.5.8 app, that show nodes on screen. there are 2 types of nodes - Folders and Pictures. When click on picture node, it ...
0
votes
1answer
51 views

UI-Router does not Register Dynamically Created Element with ui-sref

I created a SPA using UI-Router to manage my the views. The navigation bar was initially a static navbar and the routing worked correctly: <div id="mainNavBar" class="collapse navbar-collapse"> ...
0
votes
0answers
21 views

Get element with ui-sref-active

I want to do something with an active element on my menu. This have ui-sref-active="nav__main-category--active". I can't add ng-click or some like this, because all menu elements are generated by ng-...
0
votes
1answer
64 views

Redirect to a respective single product page on click in angular UI router

In my home page i will fetch all the products which i get from JSON now if i click a particular product image it should redirect to another page where the respective product alone should display. I ...
0
votes
2answers
79 views

Load jquery module after an angularjs view has loaded?

How do you load a javascript file after an angularjs view has loaded? I want to apply a third party script on a view, but it only works when I reload the full page, not when the view is called. So I'...
0
votes
0answers
39 views

Use animations after page loaded and before page leave

My animation timeline have 2 part when enter in a page and before leave a page. I use angularJS for routing website. now i need to help why ngAnimate is not working in my pages. Index.html <...
3
votes
2answers
58 views

angular tab selection opens new page instead of open in the same page

How to display the tab selection results in same page? I have stacked 3 tabs in my page and the resulting html pages are loaded in new page instead of loading in the same page. I followed the ...
1
vote
0answers
41 views

How can i open an md-card element as a lightbox and how can i give it a link?

I am using md-card directive of angular material, as you can see in this image each md-card has a picture, a title, a price and a decription. What i want to do is to make the picture clickable and if ...
0
votes
1answer
136 views

routing to proper page in AngularJS if localStorage token exists

Here is the html: <form method="post"> <div class="form-group"> <input type="text" ng-model="log.username" placeholder="username"> </div> <div class="form-group"&...
0
votes
2answers
54 views

How do i pass data through ui-view (UI-Router)?

I'm using multiple named views to nest them. What I want to do is pass some data from the div invoking the template into the template itself. Something like this <div ui-view="inputtext" data-...
0
votes
1answer
58 views

Jansy Bootstrap Off-Canvas Menu Not Closing on Single Click

I am using the Jansy Bootstrap Off-Canvas Menu in my Angular App, which is using UI-Router. Additionally, I have changed some of the styling to extend the responsive style of the menu for small and ...
0
votes
2answers
55 views

how to disable hash redirect in angular js

I have an url as below http://www.something.com/sometest/test/#registration some logic is written based on #registration for IE. Now as I am using angular js and it is redirecting as follows which ...
0
votes
2answers
49 views

How to run an script within a html template in Angular

I have an AngularJS application using ui-router that ng-repeats a piece of partial html that looks something like this <div class="event-tile" ng-class="{ 'first': (first), 'last': (...
0
votes
1answer
44 views

angularjs ui-route: change only 1 nested view and save other views from relaoding

dummy project download link` --mainview --mainview/about --mainview/about/leftcontainer --mainview/about/rightcontainer Problem I have a button on about change right side column that changes the ...
2
votes
1answer
116 views

Keep element in focus after state changed

In my AngularJS/Ui-Router application I have a series of input box like this: <input ng-model="vm.filter" ng-keyup="vm.onKeyUp($event)" type="text" class="form-control" id="filter"> Then I ...
0
votes
0answers
24 views

Routing of a directive within a directive

I have been having some issues regarding routing of directives within directives. This is my app.config for ui-routing: app.config(['$stateProvider', '$urlRouterProvider', '$locationProvider', ...
2
votes
0answers
36 views

Loading route into dynamically named view?

I'm trying to build accordion style navigation for an app with Meteor and Angular JS. I have a list of articles like so: State: $stateProvider .state('articles', { url: '/articles', ...
1
vote
1answer
185 views

How to change only child ui-view while keeping parent as same in ui-router angularjs?

I have a ui-view inside index.html. Inside this ui-view, i have added child ui-view="child1" which is working fine using $stateProvider state with nested views. Now on tab switch i want to change ...
1
vote
0answers
29 views

Angular Js Animate function in custom directive

Here is the application code: (function(){ var myApp = angular.module('myApp', ['ngRoute']); myApp.config(function($routeProvider){ $routeProvider .when('/', { templateUrl: '...
0
votes
0answers
22 views

Launching modal from controller while keeping menu from parent route

router to route pages in my app.js My main rout is /Main When application is launched /Main route is launched with side menu bar when a button from side menu is clicked "Sales" the new router is set ...
1
vote
1answer
51 views

How to do page redirection using ui-router when using nested view in each page?

I am using ui-router and it works great with single page, as i have broken my page in multiple subviews each having its own controller. Now i have two such pages, but not able to figure out how to ...
1
vote
2answers
62 views

AngularJS - Detect no action for n minutes and go to default state

I am new to Angular and would appreciate your advice. I'm using ui.router and I configured states like this: app.config(function($stateProvider, $urlRouterProvider) { $urlRouterProvider.otherwise("/...
0
votes
2answers
75 views

I need to get products when I clicked on the category list

I am using Intelxdk for this application. This is a mobile application. My categorylist will show, after that click on that, I have to redirect the product page, When I click on the category I can ...
0
votes
1answer
38 views

Cannot load jquery in angular controller

So I have an SPA in angular. I want to insert a QR code, using a jquery plugin. All my controllers and my javascript are in my index.html. When user visits screen.html or keybord.html , there is ...
0
votes
0answers
40 views

jQuery plugin won't execute in Angular ui-router ui-view

I have a jQuery plugin that is essential to my clients website. I am also using Angular ui-router. The section that uses the jQuery plugin is inside a ui-view. Her is where my problem lies because the ...
1
vote
2answers
183 views

How to handle angularJS UI router with dot (.) character

I have URL for state function as follows www.test.com/search.go?param=test The issue is handle dot(.) character in URL pattern. The URL with dot character not handling properly by angularjs UI ...
0
votes
2answers
273 views

Why is AngularJs a lot slower on iPad (vs desktop)?

Whenever a page goes through an actual digest (with around only 600 watchers) the page load is about 6 times slower on ipad vs desktop (calculated by using console.time). My current research: There ...
1
vote
0answers
46 views

Using UI-router, carousel doesn't show and stops working

// app.js var routerApp = angular.module('routerApp', ['ui.router']); routerApp.config(function($stateProvider, $urlRouterProvider) { $urlRouterProvider.otherwise('/home'); $...
-1
votes
1answer
48 views

jquery value into AngularJS

<script> var app = angular.module('myApp', []); app.controller('DemoCtrl',["$scope", function($scope) { var custom=$("#<portlet:namespace/>customInterview").val(...
0
votes
2answers
91 views

Set active class on ng-click in ui-router

Here's the repo of my project: https://github.com/vipul-verma/naysa Problem: In navigation.html I have added a controller named navCtrl and also I added activemenu function to set active class on ...
0
votes
2answers
191 views

AngularJS drag & drop editable

I am new to AngularJS pls guide me from the core level. My requirement is to drag & drop items(source) into create dynamic tree structure (target). Pls find the attached screenshot. In the ...
6
votes
1answer
173 views

Is there scope issues if I move one element from one container to another?

Considering that you have this situation: <div class="site-frame"> <div class="auxiliary"></div> <div class="main" ui-view> <div class="componentA"> ...
0
votes
1answer
834 views

AngularJS $locationChangeStart Event Cancelling Route Navigations

Can Someone please help me out understand how to use the $locationChangeStart Event? Im making aa function that if a user clicks the browser back button without saving the data on the form in that ...
2
votes
1answer
66 views

AngularJS - Does scrolling to an element belong in a directive?

I'm well aware that DOM manipulation belongs in directives rather than controllers, but I'm hung up on whether simply scrolling to an element (with jQuery's scrollTop) would be considered DOM ...
1
vote
6answers
206 views

I want to redirect to another page using angular JS

I want to redirect to another page of the application. In the similar manner as we do in MVC application or asp.net application. I have defined the Route.js file which is below. route.js defined in ...
2
votes
2answers
3k views

Error: Invalid state ref '' , when using ui-sref in angular

I'm using the ui-router for the state transitions and I ran into an issue and not able to resolve it. When I use ui-sref to go to the child state it gives me this error Error: Invalid state ref '' ...