Questions tagged [ng-view]

an angular.js directive that complements the $route service by including the rendered template of the current route into the main layout file.

348 questions
0
votes
0 answers

Angular JS Multi-template application

I'm new to Angular JS and I'm encountering some architecture problems while creating a multi-template website. I have 2 main different templates: Home page (login form on a fullscreen image) A dashboard (with a sidebar and a content section where…
user3154898
  • 271
  • 1
  • 3
  • 13
0
votes
1 answer

Grab object out of mongodb and place it in the $scope

I am trying to grab the identifier of a product out of the url (eg. /product/), grab the Product object out of mongodb and make that object accessible in the $scope of my application. Grabbing the productId out of the url works fine with…
David
  • 965
  • 3
  • 12
  • 24
0
votes
0 answers

AngularJS tags are not evaluating

I'm trying to get my first AngularJS app running with a Rails backend, so far I had some problem but somehow manage to move forward, but now there is another problem. It seems like my Angular tags are not evaluating. This is how it looks like…
sameera207
  • 16,547
  • 19
  • 87
  • 152
0
votes
1 answer

ng-view not working correctly

I have been learning angular.js for a week now and I am trying to make a practice project. When I see the HTML code the < div ng-view > part is seen as just < ! -- ngView: -- > Below are my files app/index.html
kosta
  • 4,302
  • 10
  • 50
  • 104
0
votes
0 answers

ng-view changes checkbox element's css

In my angularjs application, the partials into element get my form's checkbox's css changed to the default css for the user agent. When I retrieve the checkbox directly without going through the $routeProvider I get the checkbox element…
skip
  • 12,193
  • 32
  • 113
  • 153
0
votes
0 answers

Can you animate within angular ng-view?

I am new to Angular but I was wondering if you could animate inside ng-view once the template has been loaded? For example, I want to click on a link within my navigation and load a html template within the ng-view, within this html template then i…
0
votes
1 answer

AngularJs linking to ng-include within ng-view html page

I am currently learning AngularJs and at the same time applying it to try and figure out how this viral movie site for the new x-men film was made ( http://www.trask-industries.com/#/innovation ) ...(you can google Trask Industries if you don't…
0
votes
1 answer

how can i add js with ng-view and execute immediately angularjs

for e.g in my angular app app.config(function($routeProvider, $locationProvider) { $locationProvider.hashPrefix('!'); $routeProvider.when('/login', { templateUrl: '../login', controller: 'loginCtrl' }).otherwise(...)); in this…
Bharat Bhushan
  • 2,077
  • 2
  • 21
  • 34
0
votes
1 answer

ng-view isn't being populated with the template

Consider this plunker. I think I've set up everything correctly, but my templates aren't getting loaded into the div with the ng-view directive. My routes are configured: routes.forEach(function (r) { $routeProvider.when(r.url,…
Peter
  • 13,733
  • 11
  • 75
  • 122
0
votes
0 answers

Angularjs: Partially animating ng-view on page transitions

I have an angular app with a shared actionbar between ng-views:
The ng-view has the 'slideOutLeft' class which animates the current view…
smstromb
  • 586
  • 2
  • 7
  • 19
0
votes
1 answer

angularjs: how to handle a popup with a directive so that data comes from controller model

Suppose I have this tag in a template URL, into which HTML coming from the model is injected (HTML is basically
  • bullet points):
    A portion of the model is as follows: "cause": "
      \n\ …
  • Stéphane de Luca
    • 12,745
    • 9
    • 57
    • 95
    0
    votes
    1 answer

    Bootstrap responsive table not working with angular js ng-view in partial panel

    I have an application in which I load html by routeProvider of angular js. In one of the html's i further include htmls based on a ng-switch. in the child html i have panels with table. I want to make those table to be responsive, but somehow even…
    0
    votes
    1 answer

    angularjs: how to run view-embeded javascript after partial is rendered

    My view (a details itemId partial that lists img tags) is rendered from my controller. The number of img varies depending on the model pointed to by itemId. I need to change the div with which contains the ing tags to # of img x img width. To do so,…
    Stéphane de Luca
    • 12,745
    • 9
    • 57
    • 95
    0
    votes
    1 answer

    AngularJS ngClass not applied on new ngView when swiped until button is clicked

    This week I implemented swiping on a mobile app and found no clear demo showing swiping in both directions. So I figured to give back to the community a little I would write one. That was until I noticed some strange behavior I couldn't…
    Blackunknown
    • 195
    • 4
    • 15
    0
    votes
    1 answer

    ng-view on DOM elements not sharing a close parent

    Is there a way for ng-view to bind two DOM elements that don't share a common close parent ? My understanding of ng-view is that it binds a DOM element to dynamically switch between templates (which further generate views). What happens if I have,…