1
vote
1answer
38 views

AngularJS ui.router won't load template

I'm still learning AngularJS and having trouble with UI Router. It just won't load the template. Here's my code: <body class="top-navigation" ng-app="mixcontainer"> <div id="wrapper"&...
0
votes
2answers
37 views

Give URL with ID in Angular UI Router

I have a problem, when I edited data, my url not showing id example : /answer/1 or /answer/2 or /answer/3 etc. Im confused because Im using UI ROUTER I'm a beginner use UI ROUTER angularjs. Can you ...
0
votes
1answer
43 views

Angularjs error, Module 'testApp' is not available

<html> <head> <script type="text/javascript" src="js/angular/angular.js"></script> <script type="text/javascript" src="js/angular/angular-route.js"></script> <...
1
vote
2answers
39 views

Make two layouts share the same $scope

I want to propose two layouts (ie, horizontal and vertical) for my contents. So switching in the selector will lead automatically to the corresponding layout. Here is the JSBin: <html ng-app="...
0
votes
1answer
24 views

I have 2 app.run method.how to halt in first method until promise is resolved?

angular.module('app', [ ... ]) .constant('AppConstants', constants) .config(appConfig) .run((UserService, User) => { 'ngInject'; console.log('apprun') UserService.acl() ...
0
votes
3answers
37 views

Angular JS : Post call is going in Success as well as Error Method

I know I amy look like foolish while asking this, but I am not able to figure this out. I have written a service which handles the post call to the server. $q service is returning the promise back ...
0
votes
1answer
52 views

Can a $rootScope variable be passed in state file - AngularJS

I'm working on an Angular project and currently am working on making the entire project configurable. I have an object which contains an array of elements, each element being an object with the ...
1
vote
0answers
53 views

Using Resolve In AngularJS Routes to get Json data

I'm trying to get Json data in AngularJS Routes and then inject it to the controller. A resolve contains one or more promises that must resolve successfully before the route will change. This means ...
0
votes
1answer
45 views

reload the angularjs after update , date not updated

i am working in angularjs 1.i am trying to make CRUD in angularjs and laravel.i have successfully make the CRUD and CRUD is working fine , in my application their is child and parent routing present ...
0
votes
1answer
41 views

Duplicates in a repeater are not allowed?Use 'track by' expression to specify unique keys.?

I have created notification service globally for the application, while sending the db call, capturing the error code in interceptors and show alert. how to avoid the duplicated Error mesage in ...
1
vote
4answers
36 views

why the factory is not able to access inside the controller

I have created notification factory and pass inside controller,Inside controller when assign the factory to the scope getting error. alertsManager MyApp.factory('alertsManager', function() { ...
0
votes
1answer
32 views

Notification alert service not working in controller getting typeError: Cannot read property 'alerts' of undefined

I have capturing the application response error ,while capturing the error, i am getting the error. In Interceptor ,according to the response code , have assign the rootscope broadcast and show the ...
1
vote
1answer
29 views

Access a child state from a child state

I want to access a child state from a child state but I get : angular.js:14195 Error: Could not resolve '#/projects/detailProject' from state 'projects.list these are the states : function ...
0
votes
0answers
39 views

download Excel with filtering in Angular JS

I would like to implement exactly excel-like filtering such as If there are 2 columns, one of name and other would be of age. Now when no filter is applied, filters are showing all data. When we ...
-1
votes
1answer
74 views

access resolve in component controller in angularjs 1.5

I am trying to bind to an angularjs 1.5 component a resolve value without success, In the state definition, I have replaced the common value of template properties with a value of the name of my new ...
0
votes
1answer
29 views

Angular.js can't focus after state changed

Our UI is a little buggy. When we load the page the first time everything works perfectly. When we switch - in our case restaurants - the model is update and we can't focus the input fields. Any idea ...
0
votes
1answer
27 views

From run block can i able to call angular scope function inside another controller instead of $rootscope

I need to call angular Scope function inside some controller from runblock. can i able to call the function or else need to use rootScope or $scope.apply. First method: myAPP.run(function ($...
0
votes
2answers
59 views

Hiding navbar based on current path with AngularJS ($scope vs. controller as syntax)

I'm working with the Inspinia Admin Theme (AngularJS Version) and have the following Problem. I'm trying to show or hide the navbar based on the current path. The Problem with my first approach (...
0
votes
1answer
120 views

After refreshing page how to store $stateparams param value in Angular Js?

In button click event my state is going to change from one state to another.thats way I am passing Id value by using ui-sref. this is my button declaration for id:- <button ui-sref="list({id:...
0
votes
1answer
43 views

Change nested views through ng-click in ui.router

I am trying to insert views inside view. But it is working only at the defined state but when I trying to change the view with the help of ngClick the state lost the path. It is like View 1 --...
0
votes
0answers
27 views

Url change event when absolute url is change in angular

I am having url for page1 : Application/Controller1/Action1 I redirect to page1 to : page2 : Application/Controller1/Action1/#/SubAction1/40 Page 1 is in mvc. Page 2 is in angular. If i redirect ...
0
votes
2answers
77 views

How to bind a checkbox list using Angular and get all selected value from the checkbox using ng-reapet method

How to bind a checkbox list using AngularJS and get all selected value from the checkbox using ng-reapet method? I am try to get the value of the selected check box in the angular controller. View &...
0
votes
1answer
60 views

Is this good practice to use a single templateUrl for multiple states in Angular js? [closed]

I am using Angular frame work. I just want to know the way I am working is good or not ? If no what is the solution. My requirement is if I login as admin I have one profile page If I login as a ...
0
votes
0answers
66 views

Response for preflight has invalid HTTP status code 403- ionic app error

Hey getting error mentioned above. It is running fine on mobile but not on browser.preflight has invalid HTTP status code 403. Backend developer says he has coded everything perfectly at the backend. ...
1
vote
1answer
60 views

Project structure for large Angular application?

I am new to angular js I want to create my project structure like this - APPLICATION -index.html -app.js -modules -core -controllers -directive -views -core....
1
vote
1answer
67 views

Changing $scope.variable in $scope.$on function does not update view

I want to listen for route changes and update a $scope variable to reflect the current route in my menu (md-nav-bar): $scope.$on('$routeChangeSuccess', function(event, current) { $scope....
0
votes
1answer
29 views

$http POST angular-Submit constant public key at the time of login

I need to submit public key with constant key value, along with username and password at the time of login.And also to redirect it some other page in ionic app- href="#/tab/abc", if login is ...
1
vote
2answers
68 views

IONIC APP- get device id for post service($http.post)

I'm trying to get the device id getUUID at the time of app login along with username and password. Is the right way to get device id and post it to the server for login. controller.js ....
0
votes
0answers
19 views

How to display a perticular tab of a page when back button is clicked using AngularJs?

I am having a page with 3 tabs. In that, only 3rd tab have a button called "Show Line". If I click on that button it will load a new page(graph). If I click on back button on that new page(graph), I ...
0
votes
1answer
86 views

How to send URL parameter from angularJS to MVC action

I am using the state provider for mapping the urls , and the following is my AngularJS code. .state('uimenucategories', { url: "/MenuCategory.html", templateUrl: "/AppMenuMaker/...
0
votes
1answer
45 views

Loose Scope in angular JS

I have a multiple tab Html page . On one tab i have add 3 input box and an add button. Whenever the add button is clicked the data to be added into a grid below. But scope is not accessing these ...
0
votes
2answers
580 views

Unknown provider: $elementProvider <- $element <- DragListController

Here is my code. I got and error Unknown provider: $elementProvider <- $element <- DragListController. I'm still new with anuglar js angular .module('taskManager') ...
0
votes
0answers
34 views

Will callback functions be called if scope is destroyed in angular js?

We are following this pattern in which every function requesting to server is written in a service in angular application. Then in controller we call that function like this - suppose- service name ...
0
votes
1answer
33 views

New window with style using angularjs

I have a peculiar problem..I am trying to open a new window with content and style in that window using angularjs. I am able to open the window using the standard way as below: win.document.open(); ...
0
votes
0answers
35 views

UI-Router rootscope onchange event with $scope parameter

I want to use the fromState $scope in a function which is called in an unnamed function at the rootscope event. It looks like that right now: $rootscope.$on('$stateChangeStart' function(event, ...
1
vote
1answer
22 views

Not displaying my wines with services

I have run into a problem with my Angular Wine App. The problem is that I have had everything work in a single controller, now I want to split them up and I have done so, but my data will not be ...
0
votes
1answer
117 views

ui-sref include parameter in ng-repeat loop

I have this table: <table class="table tenant-table text-center"> <thead> <tr> <th class="text-center"> ...
1
vote
1answer
52 views

How to group routes using angular ui-router?

How to group routes in ui-router? For example, i have following routes in my app #/products/p1 #/products/p2 #/products/p3 One way of defining states will be, .state(‘products.p1’) .state(‘...
-1
votes
1answer
1k views

how to solve error “[$location:nobase] $location in HTML5 mode requires a <base> tag to be present!”

I have no idea how to solve this case. Error: [$location:nobase] $location in HTML5 mode requires a tag to be present! http://errors.angularjs.org/1.5.7/$location/nobase at angular.js:68 at $...
0
votes
0answers
25 views

AngularJS UI Router templates and scope inheritance

I've built a small search app (movies) using AngularJS, UI Router and Elasticsearch. Its very simple to start out with, hp, results page, contact form etc. I'm only using 1 controller (to keep things ...
0
votes
2answers
125 views

count number of required field in form in angular js?

could you please tell me how to count the number of required field in form in angular js ? In my form there is two required field is present (email, select view).So I want to show 2 in my page .when I ...
1
vote
2answers
367 views

Load css from a CDN in an Angular 2 Component

As the title says, i want to include external css in an Angular 2 component. Here's how i am doing it now: import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-auth', ...
1
vote
2answers
285 views

AngularJS using same controller for multiple views in single state

I am using angular 1.5 and UI route. Due to structure limitation we are loading under single state both filters view and content view(mostly for dataset presentation). I'm trying to achieve single-...
0
votes
0answers
54 views

Ion-view gets title and ion-nav-buttons of previous view

The issue I have a single <ion-view>, the roles view, that is not getting it's title set correctly or <ion-nav-buttons side="right> updated. Instead it always picks up the title and ...
2
votes
1answer
41 views

Adding configuration file to Angular 1 how should the file be structured in order to use it

I have been wanting to have a central place for a configuration file with angular 1.5.8 that I can use for switching from JSON file to localhost to dev server and various other things. I noticed $...
1
vote
1answer
45 views

Not able to display the object array values in the dynamically inserted view using angular Js

I have just started to learn AngularJS. I am trying to write this code with 3 files index.html and view1.html and view2.html . In index.html I have defined the module and controller function.In the ...
0
votes
2answers
94 views

Angular: select ng-model programmatically changed but ng-change event doesn't fire

Here's my select element: <select class="small-3 columns end statSelect" ng-model="chart.categoryAxis" ng-change="renderMainChart()" ng-options="metric as metric....
0
votes
0answers
33 views

$rootScope seemingly updating too slowly in an asynchronous call

I'm attempting to achieve a sliding left/sliding right effect (like navigating a flow in an app) with ui-router and ngAnimate. To achieve this effect, I am adding a css class on the container of the ...
0
votes
2answers
42 views

Angular data from service not showing on the frontend

Ive made 3 views and linked them to a single controller. In my controller, I am calling a service which I have made which makes a network call and gets some data which I am supposed to display on the ...
0
votes
2answers
62 views

How to pass a value (which i got from ui-router) to a modal/view through state.js?

My state. js is like this .state('lab.new-equip', { parent: 'lab', url: '/{labId}/new-equipment', data: { authorities: ['ROLE_USER'] }...