Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
34 views

I build my own form via ng-include. After you click "okay" on a page, the next one gets included. HTML index <form> <ng-include src="includedForm"></ng-include&...
Gesichtsfelsen's user avatar
0 votes
0 answers
127 views

I'm looking for a way to load ng-templates from a bundled html file to use as src in ng-include. I found a demo that exactly suited me needs, and is working fine in AngularJS 1.6.1. Unfortunately in ...
Chieleman's user avatar
1 vote
0 answers
120 views

I have this A component, with a.html and a.ts files. Inside a.html, the controller defined in a.ts (AController) is called ar. Also, inside a.html call b.html with ng-include. <div ng-include="...
kvothe838's user avatar
-1 votes
1 answer
671 views

To my dismay angular no longer supports the ng-include directive. My code base uses hundreds of shared partial html files. I cant seem to find any documentation. Can anyone point meet in the right ...
blankpage985's user avatar
0 votes
1 answer
72 views

When using ng-include, the pushState function is disrupted. The following is a simple example of this. <div ng-app="angularApp" ng-controller="angularCtrl"> <div ng-include="templateUrl"...
mjavad sh lan's user avatar
0 votes
1 answer
327 views

I'm currently a beginner - and learning angularJS. I'm having some difficulty getting a piece of html to load into my main page using ng-include I have 2 html source files. Both files are located in ...
Chris Phillips's user avatar
0 votes
1 answer
440 views

Inside my ng-view, I have included different views using ng-include. I'm using ng-if to show or hide any view based on the URL parameters. Inside my ng-view <div> header </div> <...
user avatar
0 votes
1 answer
69 views

I am new to AngularJs. I have 2 different html pages. I have created a website which have static home page and login page which will access through button. How to load login page using ng-include and ...
Dhruvil Shah's user avatar
0 votes
0 answers
56 views

I'm using <div ng-include = "myController.myVar">. During the flow of my program, myController.myVar a string generated by the return of a function. Example: myController.myVar = MyFunction (...
temp's user avatar
  • 1
0 votes
1 answer
2k views

I'm trying to include some HTML on my software's webpage using ng-include, and I can't seem to get it to work. For now, I am using simplified versions of my end goals for testing purposes. Relevant ...
Aeon Williams's user avatar
0 votes
1 answer
388 views

Good afternoon everybody, I have an index.html file that contains all the application views : I'm trying to know if is it possible to load all the ng-include after user log in and not before ? My ...
D.Aladel's user avatar
2 votes
0 answers
270 views

I want to remove all data-ng-include tags from my AngulaJS App. I found some answers but none satisfies what I want to do. I am moving away from AngularJS, and I want to somewhat componentize the ...
user avatar
1 vote
1 answer
36 views

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
0 votes
0 answers
38 views

folder structure project -app -home files.html -uploads -akp.txt I am trying in access abc.txt from files.html files.html <ng-include src="'../uploads/akp.txt'"></...
abhi's user avatar
  • 2,218
0 votes
1 answer
119 views

I'm using AdminLTE template to create a simple web app. I'm traing to use AngularJS for my front end. I want to split my theme in some child themes because it's easier to mantein. To do this, i use "...
Guido Caffa's user avatar
  • 1,251
1 vote
0 answers
213 views

I have created a custom template for my Kendo-ui multi-select element. HTML: <select kendo-multi-select k-options="vm.selectOptions" k-data-value-field="'id'" k-data-text-field="'name'" k-value-...
EaziLuizi's user avatar
  • 1,615
0 votes
2 answers
2k views

I'm new to Angular and still learning. I've created 'header.html' file and include it in my other html files using 'ng-include'. inside my 'header.html', I have a nav bar and I want nav bar links ...
Anushka Weerasekarage's user avatar
0 votes
0 answers
160 views

I am currently receiving a tree of managers and their subordinates from the back end. I'm using a recursive template to display this. <script type="text/ng-template" id="managerTmp"> ...
oxygenplug's user avatar
-1 votes
1 answer
254 views

I have a tab structure made of ng-reapet which shows the content of each tab in a panel (the same one but diff content). I have added <div ng-controller="myCtrl"> <div ng-include="'tpl....
yanivz's user avatar
  • 158
0 votes
1 answer
60 views

I have a sidebar which I hide on the login page, but show on other pages. The content of the sidebar depends on the user logged in. After the user logs in I want to refresh the sidebar which is ...
Nobody's user avatar
  • 83
1 vote
1 answer
646 views

I've been trying to figure out how to re-use items in different pages without copy and pasting them. I thought I'd start with something easy and make the header menu a separate file that I ng-include. ...
Mike's user avatar
  • 818
0 votes
2 answers
375 views

I m developing angularJs single page app. Currently my app have four kind of user (guest, student, Instructor, admin). I want to shown different dashboard for each user role mean i want to show ...
Awais Ahmad's user avatar
0 votes
0 answers
378 views

I have a simple ng-include that shows some html code. But in chrome, quite often I get the following error: GET https://example.com/view.html net::ERR_CONTENT_DECODING_FAILED I tried turning gzip ...
MrProgram's user avatar
  • 5,262
1 vote
2 answers
206 views

How can I validate one ng-include at a time, <form name="myform" ng-submit="validateData()" novalidate="novalidate"> <div> <div ng-include="customtemplate"></div> ...
Avnesh Shakya's user avatar
0 votes
2 answers
77 views

I realize that this isn't an entirely new question, but after days of trying to get this to work I seem to not understand something fundamentally, despite the extensive searches I have done as I ...
Jadefox10200's user avatar
0 votes
1 answer
75 views

I know I could do load all controller in mainPage but when there are many innerController and they have nothing to do with each other. Perhaps it's not a good idea to move them all to ...
saman.firouzi's user avatar
1 vote
2 answers
50 views

I have a header view with his controller included in my page with: <div ng-include="'header.html'" ></div> the header includes an action call like save, update... I want when the user ...
Med's user avatar
  • 117
1 vote
1 answer
106 views

I'm working on a personal project using angularJS. I downloaded this html template online and when i tested the template it is working perfectly. The problem is that when i try to include a page from ...
Aymane Bo's user avatar
4 votes
1 answer
3k views

Is there any functionality to render html file dynamically inside a components template based on the path? I have the path to local html file now I need to display the content of it inside a ...
Vishal's user avatar
  • 11k
1 vote
0 answers
100 views

I am trying to use angular with $locationProvider.html5Mode enabled and it works fine except when I use ng-include somewhere in the page. angular .module('AngularApp') .config(function($...
Samuel Martineau's user avatar
1 vote
1 answer
947 views

I'm trying to include an html file in to another html using ng-include. Followed this with no luck, maybe due to webpack version differences. 404 errors trying to find the file in the ng-include ...
Sanath's user avatar
  • 4,912
2 votes
1 answer
2k views

I have lot of small template, so i put them in a single html file. smallTemlates.html <script type="text/ng-template" id="template1.html"> ... </script> <script type="text/ng-template"...
Farhan C K's user avatar
  • 1,158
0 votes
1 answer
40 views

I have a template which I need to show the path of a template dynamically. <div data-ng-include="'app/templates/'templateUrl'.html'"></div> $scope.templateUrl = "text"; But the link is ...
Tester's user avatar
  • 1
-1 votes
1 answer
523 views

I am trying to load a JSP page inside a modal in AngularJS. The JSP page have lot of scripts and so I wont be able to take the source and create a separate template. The URL is from a different ...
Phoenix's user avatar
  • 295
3 votes
1 answer
1k views

I am changing value of variable inside child controller using $scope.$parent but change is not reflecting to its parent. <div data-ng-if="!addBillDetails"> <button class="btn btn-small" ...
Keshav's user avatar
  • 831
1 vote
3 answers
328 views

I have old project. In this moment i can not rewrite all to use ng-view and routes. So i have large html file and many unreadable code. <div ng-if="f1"> <div>...</div> </div&...
Lola's user avatar
  • 2,658
0 votes
1 answer
1k views

I got 2 divs, first has links pointing to individual pages and another one to display the content of pages the links are pointing to. Here is how it looks: <div id="navigation"> <a href="...
Jhourlad Estrella's user avatar
0 votes
0 answers
126 views

I am developing an Angular 1.6 app and using Angular UI-Router. In my config.router.js file I have a state: $stateProvider.state('myapp.edit', { url: '/edit/:id', ...
newbie's user avatar
  • 1
0 votes
2 answers
246 views

So I have a rest endpoint at the URL /check which returns serialized user data like so: { 'username' : 'malikb', 'email': '[email protected]', 'first_name': 'Malik', 'usertype': 'C' } I'...
Malik Brahimi's user avatar
0 votes
1 answer
644 views

I have an ng-include directive inside a section which needs to conditionally hide the data being shown from ng-include url. If i hide section, I never get the ng-include data but if i start with ...
user5314051's user avatar
1 vote
0 answers
784 views

I need to change the "controller as" name to ctrl in "_restaurantdiv.html" since I am using this partial file in different places under different controllers. Currently I am doing so by writing ng-...
PCK's user avatar
  • 1,454
0 votes
1 answer
136 views

I'm trying to implement nested directives. The inner directive is a button which calls a function in ng-click. The name of the function to be called is defined in the model. To start off with, here ...
old_account's user avatar
1 vote
2 answers
2k views

I have create a simple page using AngularJs. When I'm trying to include header.htm in index.html, nothing is appearing in browser. index.html <html> <script src="https://ajax....
Noman Kt's user avatar
0 votes
1 answer
1k views

I learned about ng-include and used it for templates but I am not able to include the page. The index.html and menu.html are in the same directory and menu.html is to be loaded in index.html <ng-...
quick_silver009's user avatar
3 votes
0 answers
9k views

I tried to include a html component in an other but I don't know how to resolve it by using ngInclude in angular 2/4... my html component <form class="form-horizontal"> <div ng-include=...
user1814879's user avatar
0 votes
1 answer
1k views

Situation: I have a view where I'm including a fragment with ng-include. The fragment loads perfectly and works as expected when inside view where controller is defined. My problem is, that when I ...
npc's user avatar
  • 47
1 vote
0 answers
254 views

While creating a dynamic panel: <div ng-controller="widgetCtrl"> <div drag-group="widgets"> <div class="panel panel-primary" ng-repeat="widget in widgets" draggable-widget="...
DIGITALUnderworld's user avatar
0 votes
1 answer
100 views

I'm building a SPA with Angularjs and Wijmo 5. I've inserted a Wijmo FlexGrid inside a partial file, then I've included it to the parent page using ng-include. The parent page is also an partial file:...
Cappa's user avatar
  • 117
1 vote
2 answers
864 views

There are two html files: index1.html <input type="text" ng-model="model.Name"> <!-- Some complex form !--> index.html <div>Journalist's Details: Name:<div ng-include="...
Anand's user avatar
  • 232
1 vote
1 answer
2k views

I am in the process of optimizing the performance of Angular app. I am using ng-include to add partial views and its controllers. Following is the code snippet <!--show term rule view--> <...
ot954's user avatar
  • 435

1
2 3 4 5
10