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

16th
Oct 2016
Stephan Kristyn
@nottinhill
Oct 16 2016 00:53
@iRoachie Because we thought ng2 was mature enough (not me, the other guy thought it lol)
So do I need to do @import '../theme/variables'; or what?
How do you guys import google fonts?
Rodrigo Rubio
@rrubio
Oct 16 2016 02:17
@iRoachie thanks mate! i'll give it a whirl in the new week and post issues if encountered.
Page decorator? Has this been replaced by something else? i can't find any reference under the ionic pages. I have an old app i'm converting from beta where it uses "@Page" in a number of plages.
Stephan Kristyn
@nottinhill
Oct 16 2016 02:19
Ok upgraded and getting
Kyle Roach
@iRoachie
Oct 16 2016 02:19
@rrubio Just uses @Component now
Stephan Kristyn
@nottinhill
Oct 16 2016 02:19
./ContractTermsComponent class ContractTermsComponent - inline template:11:26 caused by: No component factory found for IncludeContent
When I use this.includeSrc = "contract-terms-" + translateService.currentLang + ".html";
Rodrigo Rubio
@rrubio
Oct 16 2016 02:19
@iRoachie awesome! thank you :-)
Kyle Roach
@iRoachie
Oct 16 2016 02:20
@nottinhill I imported google fonts in my case in variables file
Stephan Kristyn
@nottinhill
Oct 16 2016 02:20
ok me too
care to share your code and how you import var file
Stephan Kristyn
@nottinhill
Oct 16 2016 02:30
Made a screencast for you
@nottinhill Lemme know if that works
Jade
@zjhiphop
Oct 16 2016 03:12
hi
Anybody here?
I have a question about Ionic 2, how to destory tabs when nav to new pages?
Kyle Roach
@iRoachie
Oct 16 2016 03:16
Destroy?
Jade
@zjhiphop
Oct 16 2016 03:18
Yes, for example, user enter to login page with a tabs component inside, and after login, user will be leading to home page, there also have a tab component . What i want to do is destory tabs component before enter home page
Because use nav push new page, the previous tabs still exists when enter new page
Kyle Roach
@iRoachie
Oct 16 2016 03:19
So tabs is your top level layout?
Jade
@zjhiphop
Oct 16 2016 03:19
yes
Is is possible to replace the root tab layout with new one/
?
Or any other solution could be used in this case?
Kyle Roach
@iRoachie
Oct 16 2016 03:21
I don’t see why not. Did you try it?
Jade
@zjhiphop
Oct 16 2016 03:22
Tried, but not found a way to do it.
Kyle Roach
@iRoachie
Oct 16 2016 03:24
i guess you could use a service, to pass a components to your app component, then set those as root
Jade
@zjhiphop
Oct 16 2016 03:28
Will have a try, tks
Gaddamnit
@solemidas_twitter
Oct 16 2016 05:34
Big ups to @iRoachie for always helping out.
Obed Osei Frimpong
@oseifrimpong
Oct 16 2016 10:27
hello guys, I want my app to be a multi-language app. Anyone recommendations? I have looked online but all are ionic 1
Kyle Roach
@iRoachie
Oct 16 2016 13:20
@solemidas_twitter Thanks!
idanwebzi
@idanwebzi
Oct 16 2016 14:21
ionic start new project not include the gulpfile to build the ts files can anyone help here?
Kyle Roach
@iRoachie
Oct 16 2016 14:23
@idanwebzi Ionic 2 doesn’t use gulp anymore! :clap: It uses rollup to do the builds.
idanwebzi
@idanwebzi
Oct 16 2016 14:27
rollup? how can i invoke it?
Kyle Roach
@iRoachie
Oct 16 2016 14:28
You can run ionic build command in the terminal
idanwebzi
@idanwebzi
Oct 16 2016 14:28
I tried it throwed at me error
Kyle Roach
@iRoachie
Oct 16 2016 14:28
What’s it?
idanwebzi
@idanwebzi
Oct 16 2016 14:34
@iRoachie ok it's seems to work on a new fresh project maybe i change there something on a new project it work good 10x!, there is some documentation about all there changes?
in the offical ionic 2 website they not include all this
Kyle Roach
@iRoachie
Oct 16 2016 14:35
@idanwebzi Well all the changes are tracked in the changelog on the main repo. https://github.com/driftyco/ionic/blob/master/CHANGELOG.md
idanwebzi
@idanwebzi
Oct 16 2016 14:40
10x, alot of changes lol
Kyle Roach
@iRoachie
Oct 16 2016 14:50
Haha yea
idanwebzi
@idanwebzi
Oct 16 2016 15:43
@iRoachie Do you know the defferince between entryComponents and declaration and y should I put them both the components if not the comilation failed
Kyle Roach
@iRoachie
Oct 16 2016 15:45
@idanwebzi all you components need to be in both of them. The only difference between mine, is that i have my pipes in the declarations
I’m assuming declarations are any items that are used in templates