Questions tagged [angular5]

Questions about Angular version 5, the web framework from Google. Use this tag for Angular questions which are specific to only version 5. Use tag Angular for any Angular questions which are not specific to an individual version.

Questions about Angular version 5, the web framework from Google.

You can read more about Angular version 5 here

You can find Angular version 5 official documents here

6545 questions
2
votes
0 answers

Route issue with deploying Angular 5 on Tomcat

I have a multi-client application using Angular 5 for the front end and a Java REST based backend. The development has been done using the ng server. For production I want to provide an industry accepted server. My choice was Tomcat 9.0. I have…
Jim
  • 59
  • 1
  • 1
  • 6
2
votes
1 answer

How to run Swagger on angular 5?

How to run swagger on my UI ? Tried like this: import * as SwaggerUI from 'swagger-ui'; @Component({ selector: 'app-home', templateUrl: './home.component.html', styleUrls: ['./home.component.css'] }) export class HomeComponent…
aaaaaaaaax10
  • 599
  • 2
  • 9
  • 21
2
votes
0 answers

Angular 5 - Pass template from grand parent to child

I've done some research without any success to find a way to pass a TemplateRef from a grand parent component to a child component. Example : grand-parent-component
2
votes
2 answers

This command can only be run inside of a CLI project

For some reasons, I want to use Angular v5 if I run the below command,it builds an app in angular 6 which I don't want. ng new hello //this creates angular app in the latest version I ran the command in the below order npm init //generated…
Kgn-web
  • 7,047
  • 24
  • 95
  • 161
2
votes
0 answers

How do I Integrate MDBootstrap in Ionic3+?

I had implemented an application in Angular5 with MDBootstrap which provides rich UI, MDBootstrap successfully works in it. Now my question is How to integrate MDBootstrap in my Ionic Project, I tried a lot but can't get a successful result.
Husain
  • 579
  • 2
  • 15
2
votes
0 answers

Angular 5. Import modules by params from url

I have an Angular 5 project. Is this possible to do the next structure? /app /folder1 /comp1 /comp2 folder1.module.ts /folder2 /comp1 /comp2 folder2.module.ts app-routing.ts ... ... So, my angular project knows nothing about this…
Trick
  • 21
  • 1
2
votes
0 answers

Error missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property

I am getting the problem in an angular5 application is when I am going to use "ngbuild" command then the below error is showing E:\finalAngularapp12-6-enter code here18\althingapp\src\app\components\fabrics\Workflow\workflow.module.ts is missing…
Satyam V
  • 21
  • 5
2
votes
1 answer

ngFor alway returning id of first object in array

I'm trying to get the ID of an object by assigning it to a variable declared in the component when a button is clicked. However, it seems to only be getting the first objects ID every time. Here is a link to StackBlitz which replicates the issue I…
2
votes
2 answers

How to set the cookie expire date with `ngx-cookie-service`

I am using ngx-cookie-service for my angular5 app. any one help me to show the way to set the expire date? I try like this: setCookies($event){ this.cookieService.set( 'retailAppCookies', "true", 30 ); this.cookieService.set(…
user2024080
  • 1
  • 14
  • 56
  • 96
2
votes
1 answer

How to append html content in angular 2 / typescript

I want to append HTML content into a div('single-pane') using insertAdjacentHTML but nothing happens. Not sure what I am missing here. Here is my HTML content which I am trying to append---> component.html
user8053092
  • 155
  • 2
  • 5
  • 11
2
votes
0 answers

How can I get this angular animation to repeat?

I'm new to Angular and I made an animation that starts on enter. Once it's done I want it to jump back to the original position and slide down again, I'd like it to loop infinitely. Here's what my animation looks like right now: animations: [ …
Jeff
  • 129
  • 1
  • 2
  • 13
2
votes
0 answers

Angular Froala _this._$element.froalaEditor is not a function

I have read all answers both on SO and git to figure out why the froalaEditor is not working in my project. Here is my setup: i have installed the plugin by using npm install angular-froala-wysiwyg --save Then in my .angular-cli.json: "styles": [ …
Marc Rasmussen
  • 19,771
  • 79
  • 203
  • 364
2
votes
2 answers

Angular 5 attribute directive not working on mouseevents

I have a problem with attribute directive. I've followed the tutorial. Directive is generated using CLI, so I've used ng g directive , and is purposely put in the top level, altogether with app.module.ts. My app.module.ts looks like…
mutantkeyboard
  • 1,614
  • 1
  • 16
  • 44
2
votes
1 answer

Customize routerLink in Angular 5

In my application I am using routerLink to create my link as per according to parameter passed in routerLink. Above code generate links with the userId provided, but I want to customize angular…
ankit sharma
  • 449
  • 1
  • 6
  • 17
2
votes
4 answers

ng serve command not working angular 5

If I run ng serve, getting this error ng : The term 'ng' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try…
mjck
  • 187
  • 3
  • 5
  • 18