Questions tagged as 'angularjs'

1
answer

Text of an input with a checkbox

Good morning. Someone could help me? I have this: <html lang="en"> <head> <meta charset="UTF-8"> <title>Example - example-checkbox-input-directive-production</title> <script src="//code.angularjs.org/snapshot/a...
asked by 03.07.2017 / 18:59
1
answer

List the selected values in an array in PHP, AngularJS and MySQL

I want to list the data in checkbox by enabling select through AngularJS and PHP. I leave the codes: app.js: $scope.getPhase0 = function(){ var dataSend = { "service": "getPhase0", "token": token }...
asked by 21.07.2017 / 01:55
0
answers

Do you use a pipe inside the ts file in ionic 2?

Perform a pipe that works perfectly within the file html , but I'm in a case that I need to use that pipe within my file ts , and import the pipe, but I do not know how to use it     
asked by 28.06.2017 / 22:45
1
answer

How to use a default value to model a segment in ionic 2?

I'm using the segment example from the ionic documentation. in the example there are two *ngSwitchCase that are these *ngSwitchCase="'puppies'" and *ngSwitchCase="'kittens'" , what I want to achieve is that by default the val...
asked by 26.06.2017 / 07:00
1
answer

Save values of a form AngularJS

I have this form <form> <div class="form-group"> <label>Add a comment</label> <input type="text" ng-model="newRole.newAuthor" placeholde...
asked by 26.06.2017 / 21:33
2
answers

How can I pass a data from a controller to another function in javascritp?

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Angular.js Example</title> <script src="angular.min.js"></script> <link rel='stylesheet prefetch' href='mat...
asked by 26.06.2017 / 23:50
1
answer

how can I have multiple apps in Angular 4 with angularfire2

The documentation says this: @NgModule({ imports: [ BrowserModule, AngularFireModule.initializeApp(environment.firebase, '**my-app-name'**) ], declarations: [ AppComponent ], bootstrap: [ AppComponent ] }) export class AppModul...
asked by 27.06.2017 / 01:28
1
answer

Delete in associative array in AngularJS

I need to delete a data in an Associative Array within a platform made in PHP with AngularJS. I have tried by all means and only erases me from back to front. This is the platform I'm working on. And the code: controller.js .con...
asked by 03.07.2017 / 23:57
1
answer

Synchronize javascript-angular time with server time

Good, I have a php-based website and manages the client part with angular. My problem is that when someone enters with the time changed to the time of Spain or different time zone the function Date of javascript is not worth me since the countdo...
asked by 18.06.2017 / 14:17
1
answer

ngTable in angularjs

I'm trying to show a table with ngTable in angularjs. This is my example controller.js var tableData = [] //Table configuration $scope.tableParams = new NgTableParams({ page: 1, count: 6 },{ total:tableDa...
asked by 17.06.2017 / 14:51