These are chat archives for angular/angular-2-ionic-2

17th
Jan 2017
JayaniSumudini
@JayaniSumudini
Jan 17 2017 04:16
hi , Guys I want to add bower components to ionic 2 project but wen i install some components by using bower It getting 404 errors where we can set path to bower components in ionic 2
JayaniSumudini
@JayaniSumudini
Jan 17 2017 04:42
I fixed it by creating .bowerrc file and include {
"directory": "www/lib"
}
into the .bowerrc file..Then run bower update command..bower components are installed into the www/lib directory..
Aamir Shah
@aamir1995
Jan 17 2017 07:34
@fr4ngus yeah sure!
Aamir Shah
@aamir1995
Jan 17 2017 08:10
@fr4ngus nevermind i just tested a sample and its working fine on both device and browser. if you want to test just clone and test this sample: https://github.com/aamir1995/demoIonic2
François BIGOT
@fr4ngus
Jan 17 2017 09:16
@aamir1995 Hello, you could do something like this https://plnkr.co/edit/UNZdIOknyw8S6xUDqTHY?p=preview
I put in the afterViewInit hook in order to wait the dom is ready before play. In general, is not a good practice to do like that
Idan & Carolina
@sayeko
Jan 17 2017 13:48
hello, I am having a hard time to send post request with ionic 2 I am getting ERR:connection refused. with no reason
François BIGOT
@fr4ngus
Jan 17 2017 17:03
@sayeko which address you send a post req ?
generally it's a CORS problem but I want to know at which address you make the request
Idan & Carolina
@sayeko
Jan 17 2017 17:40
@fr4ngus I finnaly manage it out, I tried to call to localhost from my mobile device lol .. , so I downloaded ngrok and expose my localhost port to the nat and fix the problem :+1:
François BIGOT
@fr4ngus
Jan 17 2017 17:40
@sayeko ok :)
Idan & Carolina
@sayeko
Jan 17 2017 17:50
@fr4ngus do you know if there is some 'best practice' to work with ionic 2
maybe there is good reference to learn
Guilherme de Paula
@GuilhermeGuiuler
Jan 17 2017 19:28
hello guys
Juan Heredia
@jherediagu
Jan 17 2017 20:19
Hello guys, Someone has made it work push ionic in a ionic 1 project? I'm going crazy, I've been trying for months. I have this working but when I want to try production they dont get token:
                   var push = new Ionic.Push({
                       "debug": true,
                       "onNotification": function(notification) {
                          var payload = notification.payload;
                          console.log('notificacion data ---> '+notification, payload);
                        },
                        "onRegister": function(data) {
                          console.log('token notificacion data ---> '+data.token);
                        }
                   });
                   push.register(function (token) {
                       console.log("My Device token:", token.token);
                       push.saveToken(token);  // persist the token in the Ionic Platform
                        var localStorage = window.localStorage;
                        localStorage.setItem('tokenDevice', token.token);
                   });
only works in dev_push true, when I set dev_push false NEVER WORKS
anyone can help me? I’m going crazy...