People
Repo info
Activity
  • Mar 31 23:11
    Travis angular/angular.js#16477 passed (25917)
  • Mar 31 23:10
    Travis angular/angular.js#16494 passed (25916)
  • Mar 31 22:50
    jbedard review_requested #16512
  • Mar 31 22:43
    Travis angular/angular.js#16477 pending (25917)
  • Mar 31 22:43
    jbedard synchronize #16477
  • Mar 31 22:43
    Travis angular/angular.js#16494 pending (25916)
  • Mar 31 22:43
    jbedard synchronize #16494
  • Mar 30 22:06
    Travis lgalfaso/angular.js (master) errored (831)
  • Mar 30 22:01
    Travis lgalfaso/angular.js (master) broken (830)
  • Mar 30 21:42
    Travis lgalfaso/angular.js (master) pending (831)
  • Mar 30 21:37
    Travis lgalfaso/angular.js (master) pending (830)
  • Mar 30 09:50
    Narretz commented #16518
  • Mar 30 02:44
    Travis angular/angular.js#16494 broken (25915)
  • Mar 30 02:20
    jbedard commented #16494
  • Mar 30 02:20
    Travis angular/angular.js#16494 pending (25915)
  • Mar 30 02:20
    jbedard synchronize #16494
  • Mar 29 21:05
    irufus commented #12622
  • Mar 29 19:31
    mgol commented #16518
  • Mar 29 18:19
    m-amr commented #16390
  • Mar 29 17:00
    jbedard commented #11248
Marko-Reljic
@Marko-Reljic
@himjoshu_twitter what kind of sugestion do you need?
Himanshu joshi
@himjoshu_twitter
I mean how to model the whole app structure.Any reference??
you can take a look at this
it may help
this is only for angular
Himanshu joshi
@himjoshu_twitter
Ok ,thank you
Marko-Reljic
@Marko-Reljic
np
Himanshu joshi
@himjoshu_twitter
can i get your skype username?
Marko-Reljic
@Marko-Reljic
sure
Stephen Adams
@Stephenradams
Is there a channel/room to discuss issues with Unit testing in AngularJS?
MohanaKrishnan
@mohanakrishnans

How to call spring controller using angular controller ???

im getting NULL value while using post method from angular .... :worried:

Frederik Prijck
@frederikprijck
@Stephenradams No, this is the channel to discuss anything related to AngularJS. So it's totally fine to discuss it inhere.
Stephen Adams
@Stephenradams

Cool, I have a directive (that has been already written) and now I'm trying to create the unit tests for this directive. The directive has a link function, and in this link function there is a load() function, which gets some data from a service and stores it in an array. Then this array is stored on the scope.
`link: function(scope){
var TASK_TABLE_NAME = 'Task__ap';

      function loadTasks(){

        SobjectService.getByFilters(TASK_TABLE_NAME, {}, scope.limit, { ActivityDate : 'DESC' }).then(function(res){
          scope.tasks = [];
          _.each(res, function(task){
            scope.tasks.push(task);
            scope.$apply();
          });
        });
      }` 

Similar to this:
So I'd like to test that the scope.tasks is empty and then populated, but I can't access the tasks array in my test.

Frederik Prijck
@frederikprijck
@aubrey-fowler Feels like a bug to me
@gkalpak Any idea? I've created a smaller reproduction of the possible bug http://jsfiddle.net/j25jwtL2/17/
If you comment out vm.test = new Date(), all works fine.
Aubrey Quinn
@aubrey-fowler
@frederikprijck a bug where in angular or in my code?
When I don't have validation it works but I need validation in my code
I am not sure why the validation doesn't work
Frederik Prijck
@frederikprijck
@aubrey-fowler In angularjs :)
Aubrey Quinn
@aubrey-fowler
@frederikprijck :( hmmm then I'm not sure what I can do....
Aubrey Quinn
@aubrey-fowler
I got it to work... for time input it needs to be 1970, 0, 1
rk
@rajkumart08_twitter

Hi,

  • I am trying to create a simple directive
  • It should allow numbers only in the text box.
  • wrote code but not sure what logic should I put inside the code for directive
  • can you guys tell me how to fix it.
  • providing the code below.

https://stackblitz.com/edit/angular-okulty?file=app/fontcolor.directive.ts


 isNumber(evt) {
        evt = (evt) ? evt : window.event;
        var charCode = (evt.which) ? evt.which : evt.keyCode;
        if (charCode > 31 && (charCode < 48 || charCode > 57)) {
            return false;
        }
        return true;
    }
samavamsi1
@samavamsi1
How to disbale a input text box when toggle button is enabled
            <span class="break">
              <label class="switch">
                <input type="checkbox" checked>
                <span class="slider round"></span>
              </label>
            </span><input type="number" name="Density" [(ngModel)]="op.Ro" placeholder="0" required #density="ngModel" [style.width.px]="80">
GreyBlade
@GreyBlade
Hey everybody
samavamsi1
@samavamsi1
Hi @GreyBlade
GreyBlade
@GreyBlade
I have this html
<ons-input id="username" modifier="underbar" placeholder="Nombre de usuario" float ng-model="page.username" ></ons-input>
and calling a login function when a button is clicked
I want to check if the input is empty and I am trying this
if (($scope.page.username.length==0)){
          ons.notification.alert({
                      title: 'Error al iniciar sesión',
                      message: 'Intruduce el usuario y contraseña.',
                      buttonLabels: 'Aceptar',
                      callback: function (answer) {
                      }
                  });
        }
but I am getting this error
Cannot read property 'username' of undefined
rk
@rajkumart08_twitter

hi,

  • I am new to angular2
  • I am trying to inject a service into a component.
  • in the below stackblitz I have a simple component and a simple service.
  • can you guys tell me how to do it.
  • so that in future I can do it myself.
  • providing my code below.

https://stackblitz.com/edit/angular-mj8xcu?file=app/example.service.ts

import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import 'rxjs/add/operator/map';

@Injectable()
export class SwPeopleService {
    people$ = this.http.get('https://swapi.co/api/people/')
      .map((res:any) => res.results);

    constructor(private http: HttpClient) {} 
}
samavamsi1
@samavamsi1
@rajkumart08_twitter Add this in your Component so you can use the service @conponent ({ providers:[SwPeopleService] }) and in constructor (Private sw : SwPeopleService)
Frederik Prijck
@frederikprijck
@samavamsi1 You want tp provide it in your module, not component.
pramika
@pramika
Hi Team, I have created a web application using Jhipster which is spring boot app with angular js and all our generated view pages are in html .We have third party authentication wep app and successful login the user details will be populated to the request headers in which will be readily available using scriptlets in jsp since we only htmls in jhipter generated application,is there any way to read the request headers using javscript /jquery . For example in servelet this is the below code : <%
String username=request.getHeader("username");%> Is there any alternative in javascript or jquery,Thanks in advance
序猿
@307914070
Hello.
Joe
@foxjazz
@GreyBlade is that angular or angularjs?
@rajkumart08_twitter if you upgrade to angular 5 then you can use the http with .get<yourresultInterface>('url');
GreyBlade
@GreyBlade
@foxjazz Its angularjs
Peyman
@peymancyb
hi
anyone can help me to use gstatic in angular?
i have added <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
in my index.html
but i can not use gstatic in my scope
Onyedikareal
@Onyedikareal
Am glad to join you guys