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

13th
Mar 2018
Fares tayari
@farestayari
Mar 13 11:30
hello
i have a question about view component
Jaydip Kalkani
@JaydipKalkani
Mar 13 11:49
Hello, i am new to ionic and i want to load webpage in my ionic app which contains tabview. If i use InAppBrowser then it covers my tabs so it's not solution for me. iframe tag can't load webview .I don't know what's the problem.
image.png
iframe component shows like this screenshot. i am using this lines of code.<iframe src="https://www.youtube.com/watch?v=I7nbSzLCtEE"></iframe>
Owen Melbourne
@OwenMelbz
Mar 13 11:51
that might be a cores issue more than anything
check the dev console
and try using proper youtube embed code
Jaydip Kalkani
@JaydipKalkani
Mar 13 11:51
ok..thanks
@OwenMelbz can you please provide me link of any proper example for doing this?
Owen Melbourne
@OwenMelbz
Mar 13 12:36
go to a youtube video, click share - copy the embed code it gives you
Jaydip Kalkani
@JaydipKalkani
Mar 13 12:37
thanks...it works.
@OwenMelbz but i want to show youtube's webview in my app. which coponent can i use for this?
Owen Melbourne
@OwenMelbz
Mar 13 12:57
you cant, youtube have a security policy blocking it
Fares tayari
@farestayari
Mar 13 13:36
hello
i'm a beginner in ionic
can someone help me how to integrate a custom js script into a page
Owen Melbourne
@OwenMelbz
Mar 13 13:37
with great difficulty :)
Fares tayari
@farestayari
Mar 13 13:38
it's difficult ?
UncertaintyP
@UncertaintyP
Mar 13 13:38
Or with a simple script tag in your index.html ;)
Owen Melbourne
@OwenMelbz
Mar 13 13:38
technically its just html, so can add a script tag pointing to the file, if its in NPM then can require/import it via typescript - really depends what you're trying to use
Fares tayari
@farestayari
Mar 13 13:39
well i tried to put it in index.html but it's loading only one time if i go to another page and return the function doesnt work any more
Owen Melbourne
@OwenMelbz
Mar 13 13:40
so although it is just html/css/javascript - the javascript still needs to be written in a compatible way
Fares tayari
@farestayari
Mar 13 13:40
what i want to do is very simple i have two text fields and a button , when i click on the button the two text fields change values
Owen Melbourne
@OwenMelbz
Mar 13 13:40
if its not - you need to modify how it loads to make it work
Fares tayari
@farestayari
Mar 13 13:41
i tried onload() but it's not working
strill the same problem
Owen Melbourne
@OwenMelbz
Mar 13 13:41
you're meant to have "pages"
each page can run its own code
so ionic would say - put your code to change the values in the page
sounds like it might be more suited to a stackoverflow question - giving example code, showing what you're trying to include then somebody can give exact reply
Fares tayari
@farestayari
Mar 13 13:43
ok thank you very much
but i have another question
UncertaintyP
@UncertaintyP
Mar 13 13:44
Why don't you use Ionic from/buttons for this?
Fares tayari
@farestayari
Mar 13 13:44
how ? can you explain more please ?
Fares tayari
@farestayari
Mar 13 13:49
the other question is , in the app i'm making , there is menu hidden in the header and it's accessible only when i pull down or click to button
just like the notification bar in a android/ios smartphone
Fares tayari
@farestayari
Mar 13 14:11
any help with that ?
Owen Melbourne
@OwenMelbz
Mar 13 14:12
i think if it requires more than a sentence to answer - then it needs to be on stack overflow really, the chat is really for quick things
Fares tayari
@farestayari
Mar 13 14:13
okay
thanks you very much ;)