Tagged Questions
0
votes
1answer
32 views
Routeprovider and stateprovider together in my Angular 1 app
I am trying to develop an app using Angular 1.4.(Refer below image). I need suggestions on below
What is the best way to develop home Page in this. Should I use <ui-view>(UI routing) to ...
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
0answers
13 views
Angularjs admin board with adding views
I need some help on the logic how my web application should be designed and implemented.
I have an Angular app with the possibility to log in as admin to manipulate the site (Add news, blog posts and ...
1
vote
0answers
33 views
Angular NG6 IE assignment to read only properties is not allowed in strict mode
View IE console Error
keep getting this error in IE and Mac safari and iOS devices.
in pageheader it only display {{$ctrl.title}} not the value, any idea about this?
Games.js
import angular from '...
0
votes
1answer
63 views
Angular directive not working if loaded with RequireJS
I have a directive that works correctly when RequireJS is not used, and I'm trying to migrate it to an application based on RequireJS.
The directive wraps an Angular UI modal, and uses transclude to ...
0
votes
1answer
27 views
Angular directive with transcluded elements + RequireJS not working
In this punk I'm attempting to have an Angular directive with transclude: true and RequireJS. The transcluded elements should be included in an Angular UI Modal that is opened when a user clicks on a ...
1
vote
0answers
31 views
ui-view inside the ui-view
I am creating single page application, when i load the page my index.html will start with login page, in index.html i am using ui-view, login page is load inside the ui-view, and when i logged in home ...
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 ...
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 ...
0
votes
0answers
33 views
why angular $q service response gets null with mvc json response
I have created an small login page with angular js with mvc .
When submit the login ,it goes into the below function.
function LoginController($scope, $rootScope, LoginService,$location, $...
0
votes
0answers
49 views
How to stop an Multiple SetInterval in Angular based Application
myApp.run(function ($rootScope, $interval, $timeout, $state, $localStorage) {
load = function () {
cdreset(); // reset the countdown to 0
countdown(); // call the ...
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 ($...
1
vote
1answer
36 views
How to change the path from custom directive? Angular
I have the following directive which is a button and trying to change the path when clicking on the button but nothing happens.
app.directive('searchAgainButton', function ($location) {
return {
...
0
votes
1answer
23 views
route to specified number of views in angularjs
I am in the process of building a mobile web app with AngularJS. The app will allow the user to record the salary and other figures for employees.
On the first page the user will select the number of ...
2
votes
3answers
86 views
Remove DOM-Element with AngularJS
I'm trying to remove a navbar based on the current location path.
This is what I have so far:
angular.module('myModule')
.controller('MainController', function ($location, $document) {
if ($...
0
votes
0answers
37 views
How to append the same template twice within another template - Angular 1.5
I am an Angular newbie. Using Angular 1.5, I have a main template with a button.
ui-sref on the button is linked with a ui-router that loads an image (another template). My requirement is to keep ...
0
votes
0answers
27 views
Angular throwing cryptic error, can't figure out root cause
I'm developing a CRUD SPA with UI Router. Here's the state:
.state('admin', {
url: '/admin/',
templateUrl: 'ui/admin.html'
});
The link:
<a ui-sref="admin"><span class="...
0
votes
0answers
54 views
How to maintain the user session without data loss and without refreshing the page in Angular js
I have implemented an application:
Technology used: -- Angular, Mvc, WebApi.
How I have calculated the session in the application means?
When user login into the app, Set the logout time , Before 3 ...
0
votes
1answer
14 views
sx-sref not being compiled to href
I have the following directive that I'm using to generate links (among other things). I've simplified it somewhat here:
oActivityModule.directive('activityDetails', function () {
...
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
1answer
184 views
How to add uib-dropdown to a uib-tab to create a simple dropdown menu on a tab made with angular bootstrap?
i'm a novice when it comes to angular js (v1.5) and i'm currently working on a project using angularjs(v1.5), bootstrap 3, UI Bootstrap.
i tried to add the dropdown directive to the tabs directive as ...
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
1answer
47 views
Bootstrap alert message is not working inside angular run blocks under ui-router?
I am doing sample application to autologut if user is idle for 30 Min. before 1 minutes to logOut have to show an warning message to the user.
So i have calculated the minutes and show the warning ...
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
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
2answers
51 views
angularjs, ui-router access to parameter at the beginning in the state url
I have a frontend web application written enterely in HTML5/JavaScript and the MVC is managed by AngularJS framework using UI-Router.
Now... I have the need to manage more customer with a single ...
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 ...
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 $...
1
vote
2answers
3k views
has no exported member 'ROUTER_DIRECTIVES' and 'provideRouter' in Angular2
I am new to Angular2. I have created a new project with
angular-cli: 1.0.0-beta.17
node: 4.1.0
npm: 3.10.8
Package.json:
"dependencies": {
"@angular/common": "~2.0.0",
"@angular/compiler": "...
1
vote
1answer
35 views
Navigating to separate page instead of ui-view using ui-router
I use ui-router in AngularJS for navigation and I want to navigate to a new separate page instead of locating the content in the same page using <div ui-view></div>.
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 ...
0
votes
1answer
46 views
Angular ngRepeat increase $index and render view accordingly.
Consider that I've got two views, view1 and view2.
I am getting an array from an API in View1. From there, I am trying to go to view2 and dynamically render view2 for as many times as there are ...
0
votes
1answer
77 views
How use controller variable inside a AngularJs directive
How use controller variable inside a directive . I used popoverHtml inside scope in directive but when i add type like this type not work :
like this : scope: { popoverHtml:'@', type: @ },
my html ...
0
votes
1answer
53 views
Custom directive not displaying withing a ui-view
I have a custom dircetive "3-test-directive" which I want to call to display a text. When I use this directive in the page partial-home.html, it does not diaplay me with any text from the directive(it ...
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 $...
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
2answers
30 views
rerun all angular object directive (not only link function) on route change
i created a directive that simply converts some div tags that is stored in .html to a single element. i noticed the directive only gets compiled on page reload, when the route is changed the directive ...
0
votes
0answers
87 views
Angular2 Routers are not detecting Dynamic Content
I am having Problem in Angular2 Routers. The Problem is Routers are not detecting Dynamic Content in my components.
There is a home page which consist of only static content, after that I have a ...
0
votes
0answers
101 views
Integrate magento with angular
I am trying to find out the best solution for a new application.
This application will be built on Magento CE 1.9.2.
Due to the front end design which requires lot's of elements such as complex and ...
2
votes
1answer
35 views
Angular JS UI-Router not working
It doesn't display anything on view nor any error on console log. Have checked with case sensitives too still couldn't solve the problem. Saw other posts too still couldn't find where am making ...
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
81 views
Codec not found for requested operation: [varchar <-> java.util.List<java.lang.String>]
I'm getting the following exception, and I'm using cassendra--.3.0.0.jar, guava-16.0.1.jar.
When we are using a String it works fine but after changed to List we get face this issue:
SEVERE: The ...
0
votes
0answers
57 views
Issue with ng-include in single page application
I am working on single page application with require js. I am creating single page application with header, content area and footer. Footer is static text with some CSS.
Header contains 2 level menu ...
0
votes
1answer
60 views
default state in nested ui-view in ui-router
I am working on a project where I have a created a directive for a multi step form. Essentially trying to replicate this. The project layout has a header,navigation, a content page (which includes a ...
0
votes
1answer
29 views
Is it possible to let submodules in AngularJS control their own routing using ui-router?
Here's the scenario:
I have a main AngularJS app that uses ui-router for routing, like any other app. I also have a smaller AngularJS module that functions as its own app, not requiring that it be a ...
0
votes
2answers
82 views
How to call the external controller from angular scope
I am creating a project using angularJS. Here I have many controllers in different HTML files script section. In my home page file, I have to call these controllers and scope values without referring ...