ngView is a directive that complements the $route service by including the rendered template of the current route into the main layout (index.html) file. Every time the current route changes, the included view changes with it according to the configuration of the $route service.

learn more… | top users | synonyms

0
votes
0answers
5 views

Angular: Why Won't Model Update Outside Of View In Same Controller?

I have found a number of posts talking about models/views not updating, but I still can't figure this out. I'm new to Angular, btw so I suspect this is noob issue. I have the below Angular app. When ...
0
votes
2answers
49 views

.js not getting applied on ng-view

I have the index.html with ng-view inside. I have imported respective .js file to the index.html but those .js not getting applied on injected view. index.html <!DOCTYPE html> <html ...
1
vote
1answer
32 views

ngMap directive not displaying the location coordinates taken from service file

I am trying to call location coordinates from service file and display in google map view. But for some reason the data binding is not working, and there are no errors and the controller is calling ...
0
votes
1answer
62 views

Multiple ionic views fails to render

How do I have multiple ionic views? - I've tried a variety of things to get it to work, but all failed... Here are the relevant parts of my Angular Ionic app: View <body ...
0
votes
0answers
81 views

AngularJS view without controller

I creating a simple angularjs app. I've imported ngRoute module and 2 views - Home and Contact. Home view is defined with controller. .when("/", { templateUrl: "home/home.html", controller: ...
1
vote
1answer
55 views

AngularJS View Is not Being Replaced

I have this angularJS application that I am working on. I have a login page that works fine; however, transition to the menu page does not work. The view is not being replaced as expected. What am I ...
0
votes
2answers
122 views

AngularJS Nested View

Edited on 10/05 I've been following this anjularjs and asp.net tutorial. I am trying to add some additional things on my own, but I am stuck. I am getting a JSon object from the server, and I am ...
0
votes
4answers
51 views

How to display same computed value multiple times in AngularJs view by calling compute function only once

In my view I want to display a computed property multiple times, if I do {{ctrl.Compute()}} multiple times, then compute function get called multiple times. I have created this plunkr demo to simply ...
0
votes
0answers
221 views

How to render view only after ocLazyLoad will complete loading all dependencies?

I'm using ocLazyLoad library to maintain dependency loading of javascript/css files. The problem that when I use it with my router, i.e: .state('schedule',{ url: '/schedule', ...
0
votes
1answer
46 views

Improving AngularJS view update with ngshow

Right now I have a view that uses ng-show to show a select DOM object when certain criteria are met and ng-show for a input DOM for all other cases. When I do this and switch between the two cases, ...
0
votes
1answer
163 views

How to use JavaScript returned by AngularJS minified partials

I am minifying my angularjs application and as part of which I used gulp-ng-html2js to minify the partials, that seems really good because it convert all the html partials into a single javascript ...
0
votes
0answers
36 views

How to replace declarative view filter with dynamic filter function

I have constructed a declarative filter that factors group-based weighted averages. Problem is that when a new group is added I have to create additional view-side rules and reference index id. ...
0
votes
1answer
154 views

How can I use multiple angularjs's controller inside a view (or subview of a multi-views)?

As title, I'd like to use more than one controller inside some sub-view routes.js (eg.): .state("multi",{ url: "/multi", views: { "": { ...
3
votes
1answer
196 views

Switching Angular view not updating variables

I'm just building out a simple app to learn AngularJS and having trouble updating variables when switching views. Here's what I have so far: function routeConfig($stateProvider, $urlRouterProvider) { ...
0
votes
1answer
217 views

Angular PDF viewer: How to use

I need to use a pdf viewer on my web app which is in anugularjs. I found Angular PDF viewer and it's ok for me. But I don't know what code insert to use it. At the moment I've: in html: <div ...
2
votes
3answers
47 views

Losing form input data when reinvoking a controller

I have a simple multi-view Angular application that implements a wizard, so each time a user clicks "Next" button, the app navigates to the next view, and same for "Back" button. I have a ...
1
vote
1answer
160 views

angular loop through unnamed ng-form elements

Is there a way to loop through unnamed ng-form elements in my view? <div ng-controller="CtrlMain as vm"> <ng-form> <input name="Email" type="text" /> ...
0
votes
1answer
75 views

ngModel values are null after executing create-btn in AngularJS

I have reduced my form to create the input fields with ngRepeat. So the items for the attributes are defined in my ctrl. Firstly the Code of the ModalCtrl: ... $scope.form = [ { label: ...
1
vote
3answers
200 views

Angularjs View Not Updating, View Flickers on Button Click

I have written the following HTML & AngularJS code to update the Tree on HTML Page (View) on the Click of a Button. When the Button is clicked, the changes appear for a fraction of second and ...
0
votes
0answers
260 views

Call directive event handler emitted from parent controller

I have a requirement like i want to emit an event from a controller and the event handler is present in directive controller (i.e child controller). Please find the code below: <div ...
0
votes
1answer
521 views

Controller function being called but not executing AngularJS [closed]

I am trying to call a controller from the view. I used Chrome dev tool and I know that the controller is being called, but not execute. My goal is to call the server to get more information about a ...
1
vote
1answer
168 views

Different animation when history.back() ist used

I've created a website based on AngularJS. Every page has it's own template and controller and is included via ng-view in the main layout. But I have a problem with animations between different ...
1
vote
1answer
152 views

slide between views works…but view is on top of header and behind footer?

Hi I have an angular app. It runs great. I've decided that I want it to animate between views. In this case...when the person clicks on a link on a navbar...the view slides to a different view. ...
0
votes
1answer
340 views

IE blank page for angularJS web app

We are currently looking for an advice or help on how can we solve our current issue on IE 9. We have a Web App like YouTube created from AngularJS and Laravel. The Web App can be opened and working ...
0
votes
3answers
1k views

Update $scope when $resource promise resolves

I've been trying to wrap my head around how to use angular $scope correctly. My app updates a view based on url links in json data it received from the server when loading the main page. The ...
0
votes
0answers
111 views

AngularJS ngView dropping form control. form undefined

For some strange reason, after having worked for a while, AngularJS partial view template (html file) once loaded into an ngView drops the first form control. I discovered this when suddenly getting a ...
0
votes
2answers
605 views

Configure angularjs app in tomcat with multiple views

I configured a small angular app in tomcat its working fine, but when i tried to use route-Provider its not working. I cannot route to my views. I did not know why ? Can any one give some small ...
3
votes
1answer
5k views

Controlling multiple views in one controller in AngularJS

Following the MVC pattern, one controller should be able to handle multiple views in AngularJS. E.g. I have one view for showing all users and one for creating a new user. My $routeProvider ...
0
votes
1answer
48 views

In AngularJS how can I load scripts when the View changes?

In AngularJS it has the ability to route a section of the page using ng-view. This is really nice for smaller projects but as projects get larger it does not scale very well due to the inability to ...
0
votes
2answers
98 views

Is AngularRoute.js is Mandatory for routing in Angular js

i am new to angular js . Please help me. i readed some blogs on angular views and route and i implemented the code for view and route . the code was not working. As I include angularoute.js to code ...
4
votes
1answer
5k views

Change only one view on state change in ui.router?

I have a simple layout like so: __________________ ________ | | | Side | | Main section | | -bar | |________________| |______| The "Main section" exposes forms to the user; ...
0
votes
1answer
49 views

AngularJS. Equality operator returns true when false

Have an equality operator in angularJS that is not returning as I should. example: The value that comes from the object "data.valuea" is 50. Have the value that comes from the object "data.valueb" ...
0
votes
1answer
61 views

One View bind to different data models at different time (AngularJS)

I have created a view (A HTML file consisting of some divs and input boxes) and now I want to use that file as a view at different places but with different data models binded to it. "I mean change in ...
3
votes
1answer
371 views

“AngularJS way” to map values for output in a view

Am seeking advice on a beginner problem with AngularJS: My app has lots of cases where the API it's working with gives a value from a list of possible types, I've pulled the value into my model and ...
0
votes
1answer
84 views

Angular: where should I track div 'expanded' state?

I'm new to Angular so this is a question about best practices and separation of concerns. Let's say I have the following setup <div ng-controller='SomeCtrl'> <div ng-repeat="item in ...
1
vote
1answer
2k views

Single Page Application angularJS

I was developing a sample application to learn AngularJs. There are three links that show up three different templates in the ng-view . main.html has the three links. ...
0
votes
1answer
84 views

Calling an angularjs function during controller init

I have a large amount of code that I inherited. It is working according to the original spec, so although it may or may not be the "right" way of doing things, it does work and I'd prefer not to mess ...
0
votes
0answers
159 views

Same css font properties but different display in angularjs view

I've a big problem and apparently nobody seems to have encountered this problem yet. I have been modifying my website which uses AngularJS to use views instead of charging the whole page everytime. ...
2
votes
3answers
768 views

How to prevent view redraw when changing route in AngularJS

I'm making a web app where users can view objects on a map, press a marker and go to a new view with information. From that view they can traverse deeper, into more information. Something like: ...
0
votes
1answer
33 views

Is it possible to access a function in a directive from a view?

I'm fairly new to AngularJS and trying to learn by doing. There is a function in a directive I'm looking to access from the view. What I have in my HTML file is <div collapse class="collapsed" ...
1
vote
2answers
210 views

Which event fires when view is rendered in AngularJS?

I know there's $viewContentLoaded, but it fires before AngularJS substitutes the placeholders with scope variables. I managed to solve this by setting a timeout for 0 ms in my $viewContentLoaded ...
0
votes
1answer
290 views

AngularJS remember DOM state between views

It seems like Angular re-renders an entire view when a route changes. See this example: http://jsfiddle.net/RSHG8/1/ html: <div class="nav"> <a href="#/one">One</a><a ...
0
votes
1answer
563 views

Animating view navigation forwards and backwards

So, Angular 1.2 has full ng-animate support, and I've been using it for page transitions - initial setup was easy enough, awesome. Forward animations (left-to-right), no problem. Backwards navigation? ...
-1
votes
1answer
53 views

Switching between views on same controller

I've got a page that says "GENERATE", and it has a form on it. And then you submit the form by pressing the Generate button, and I want it to take you to a new view called "LOADING" whilst it waits ...
2
votes
1answer
474 views

Is there a way to render a view outside of ng-view only when ng-view gets rendered?

I've got user navigation in a partial loaded using ng-include that's outside of the ng-view. I'm also authenticating users and prefetching almost all data necessary for any controller and view in ...
0
votes
1answer
378 views

How to pass validation error details to view

In a custom validation directive I ensure that the entered value does not conflict with others in the database. If it does, I would like to tell the user not only that there's a conflict, but also the ...
2
votes
2answers
7k views

How do I format data in a view in AngularJS?

<input type="text" ng-model="user.User.DateOfBirth"> is in my view. user.User.DateOfBirth is currently in YYYYMMDD format, but I want it to show as mm/dd/yyyy format in the view. Is it possible ...
3
votes
2answers
4k views

Why ng-scope is added to javascript inline of my partial view and makes alert not working?

I'm using AngularJs with templating system. I want to add specific inline javascript script to each template adding alert box regards to the selected tab ( Home | List | Settings ) Html renders : ...