Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
36 views

AngularJS - Binding same scope to multiple copies of a form using ng-include

I have a simple search form which I have it included in two different pages using ng-include directive. I would like to bind them both to the same scope in such a way that when the user navigates ...
hagh's user avatar
  • 577
1 vote
2 answers
45 views

How to bind different scopes from one controller to the one?

I have a controller that I use in two places: in a ng-view and in a ng-include. These places are not child or parent to each other, but I want to some changes made in the ng-view affect to ng-include ...
through.a.haze's user avatar
0 votes
1 answer
580 views

dynamically Build ng-template using list

I am trying to build ng-template dynamically, In the Data structure, I have a Object that contains list of object of same type or other type of object. [ { ...
Adnan Mian's user avatar
0 votes
1 answer
312 views

Ng-include losing scope

I need to show different forms depending on user clicking different buttons. The user should be able to switch different forms and read previous data inserted. Unfortunately it seems like ng-include ...
Larsen's user avatar
  • 53
1 vote
2 answers
505 views

Angular.js no scope in ng-include html template

I am learning as I go with my first Angular project and have ran into an issue. Goal: When an link is clicked in a given .html template placed in with ng-include, I want it to change the value of $...
Weston Sazehn's user avatar
0 votes
1 answer
657 views

Can I nest a $scope variable inside an ng-include?

I wanted to nest a variable inside an ng-include. The variable in this case would be a CDN path or file path. This works: <img src="{{cdn}}uploads/avatar_{{uid}}.png" ng-src="{{cdn}}uploads/...
TheBlackBenzKid's user avatar
1 vote
1 answer
165 views

access value from one template to other in angular

How to use model value from one template1 to template2 ? Here is my code :- index.html <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Example ...
Eftakhar's user avatar
  • 455
1 vote
1 answer
662 views

How to call a method inline in ng-include and concatenate the results?

I would like the results from a method to be part of the string that gets passed to ngInclude. Something like this: <div ng-repeat="result in queryResults.results"> <div class="box" ng-...
adapt-dev's user avatar
  • 1,788
1 vote
1 answer
1k views

a directive inside an ng-include works only for the first time

I have a page with a left menu. On click of the anchor tags i load a partial view on a div in the page. All the menu items requires the same ng-template with different data. What i am Doing: ...
niteesh.ravi's user avatar
1 vote
1 answer
2k views

Can't access $parent from ng-included controller

I'm pretty new to Angular and I'm trying to build an app. I use ng-include to insert my view, depending on the currentURL variable of my main controller. When I try to access the main controller via $...
pistou's user avatar
  • 2,877
0 votes
1 answer
701 views

Dynamic template depending on dropdown user selection

Trying to use dynamic template that should change depending on user selection. so when a dropdown option is selected then load another html template. I like to do this cleanly and in a modular way ...
ove's user avatar
  • 3,222
2 votes
2 answers
1k views

ng-include template variable not changing on $scope.$watch (no button trigger)?

I have a controller 'AController' that has a template variable, $scope.tpl.partialtemplate1 = 'initialcontactlist.html'. 'AController' basically is in charge of an entire page, 'mainpage.html', where ...
angularjslearner66's user avatar
27 votes
3 answers
66k views

AngularJS : ng-include and ng-controller

I have an app which I am building with angular, I have about 8-10 views to build out. All the views have a shared footer, based on the view and a set of business rules i need to conditionally show / ...
DShorty's user avatar
  • 582
1 vote
1 answer
701 views

angular Controller event is not firing on custom alert

My Problem is Click event is not firing from alert.html. In index.html I have included output.html assigned to outputController, in output.html I have included alert.html by default alert.html will ...
atluriajith's user avatar
1 vote
1 answer
224 views

Angular model looses scope with ng-included in directive [duplicate]

I wasn't sure on how to properly title this question, so here it goes .. I'm trying to setup a dynamic way to change out templates inside of a directive using the ng-include method. I've set up two ...
spez86's user avatar
  • 732

15 30 50 per page