Questions tagged as 'angularjs-2.0'

0
answers

As an NgModule implement in a custom field

I am implementing the following custom component to upload files: I need to know how I can associate a NgModel with the custom component that I create, to be able to handle it more easily and store the path of the file that was u...
asked by 04.10.2017 / 15:33
1
answer

Angular 4 - Import JS file with global variables?

I'm working with Angular 4 and my problem is this: At the moment of generating a production package with ng build --prod my dist folder is generated and inside it my assets folder where I included a JS file called "ip.config.js". In this file...
asked by 21.08.2017 / 17:56
1
answer

Not data available in table

I am making requests to an API of mine made in Laravel that gives me a JSON, which maps to a table and when trying to load with DataTables shows the data but says below Not data available in table . This is the html of the table view...
asked by 15.08.2017 / 21:59
0
answers

Errors when compiling using Ahead of Time

I get this error when I try to compile Ahead of Time in a project written in angular 2.    Error: Error at /xxx/app/src/bootstrap.aot.ts:2:36: Can not find module '../../ app-aot / app / src / app.module.ngfactory'. This is my boots...
asked by 18.07.2017 / 21:13
3
answers

Calculate age from a date

How can I calculate the age from a date? This is my code, when I run it I get undefined in the field that I want the age to appear. <div class="row"> <div class="small-6 columns"> <label>Edad</label> &...
asked by 02.06.2017 / 18:53
0
answers

serviceworker in universal angular

I'm trying to use services worker with universal angle, all right, except for one thing, I have my client.js file which is the minimized file of angular.js This is my index.html <html> <head> <meta charset="UTF-8"> <...
asked by 12.07.2017 / 22:26
1
answer

Parameter "undefined" when wanting to use a string in Angular2

I am trying to pass an id from a div to a child component, this works for me if I use it in the template of the child component, but when I want to use it in the code it appears as undefined parent component with its respective template...
asked by 10.05.2017 / 06:08
0
answers

Angular2: load component in router-outlet by name

I'm doing a dynamic tab in Angular 2 <ul class="nav nav-tabs"> <li *ngFor="let tab of ltTabsMenu"> <a data-toggle="tab" href="#{{tab.idDiv}}">{{tab.title}}</a> </li> </ul> Later...
asked by 11.05.2017 / 15:53
1
answer

Consume WCF WebService

I developed a service with C # that consulted a database with certain functions. I went from AngularJS to Angular2 and here my problems came. Inside my WCF I have: [OperationContract] [WebInvoke(UriTemplate = "/GetCaptaciones", Method =...
asked by 27.04.2017 / 02:05
1
answer

Problem with observables in angular2

Hello, how could I do the following, I have a ListComponent component that serves as a template. At the end I have ListComponent1 and ListComponent2, which is passed by input different options (type of menu if it is menuPrincipal, authentication...
asked by 13.04.2017 / 21:08