Questions tagged [angularjs-view]

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.

Overview
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.

Directive Info
- This directive creates new scope.
- This directive executes at priority level 400.

Usage

as element: (This directive can be used as custom element, but be aware of IE restrictions).

<ng-view
  [onload=""]
  [autoscroll=""]>
...
</ng-view>

as attribute:

<ANY
  [onload=""]
  [autoscroll=""]>
...
</ANY>

as CSS class:

<ANY class="[onload: ;] [autoscroll: ;]"> ... </ANY>
52 questions
0
votes
1 answer

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
{{ item.name }}
Sam Stern
  • 24,624
  • 13
  • 93
  • 124
0
votes
1 answer

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 with it. (I am VERY new to angular, and under a…
EmmyS
  • 11,892
  • 48
  • 101
  • 156
0
votes
0 answers

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. Now I've made slight modifications to the css at…
hilnius
  • 2,165
  • 2
  • 19
  • 30
0
votes
1 answer

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 What's going on there is…
0
votes
1 answer

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:
Fergal
  • 2,484
  • 2
  • 36
  • 48
0
votes
1 answer

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 name of the item it is conflicting with. Storing…
hoeni
  • 3,031
  • 30
  • 45
-1
votes
1 answer

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 for the result to come back from the server, then…
b0xxed1n
  • 2,063
  • 5
  • 20
  • 30
1 2 3
4