본문 바로가기

ionic7

[android] 알뜰 구매 알뜰 구매 알뜰구매를 위해 각 사이트에 올라오는 쇼핑 관련 글들을 한번에 볼 수 있는 화면을 제공합니다. 이곳에서 다운로드 할 수 있습니다. 2016. 6. 26.
[ionic] ionic 프레임워크에서 외부 URL 열기 ionic 프레임워크에서 외부 URL 열기 프로젝트를 생성합니다. ionic start ExampleProject blank --v2 cd ExampleProject ionic platform add ios ionic platform add android cordova inappbrowser 를 설치합니다. ionic plugin add cordova-plugin-inappbrowser 실행할 함수를 추가합니다. launch(url) { this.platform.ready().then(() => { window.open(url, '_blank'); }); } Code Description window.open(‘http://example.com’, ‘_system’); Loads in the system.. 2016. 5. 24.
[ionic] open api 로 데이터 가져와서 적용하기 [ionic] open api 로 데이터 가져와서 적용하기 cordova-plugin-whitelist 추가하기 ionic plugin add cordova-plugin-whitelist http://www.gajotres.net/ionic-2-making-rest-http-requests-like-a-pro/ INSTALL CORDOVA WHITELIST PLUGIN If you’re using Cordova 4+ and especially if you’re accessing remote content don’t forget to install Cordova Whitelist plugin: cordova plugin add cordova-plugin-whitelist Open www folder and.. 2016. 5. 17.
[ionic] Promise resolve 으로 변경 [ionic] Promise resolve 으로 변경 home.ts getList(page) { return new Promise(resolve => { this.dataportal.getList(page).subscribe((data) => { if (!data.response.body.items.item) resolve(true); for (let d of data.response.body.items.item) { this.datas.push(d); } resolve(true); }, e=> console.log("error") , () => console.log("complet")); }); } doInfinite(infiniteScroll: any) { console.log('doInfinite,.. 2016. 5. 17.
[ionic] template 비교 [ionic] template 비교 blank 프로젝트 app.ts import {App, Platform} from 'ionic-angular'; import {StatusBar} from 'ionic-native'; import {HomePage} from './pages/home/home'; @App({ template: '', config: {} // http://ionicframework.com/docs/v2/api/config/Config/ }) export class MyApp { rootPage: any = HomePage; constructor(platform: Platform) { platform.ready().then(() => { // Okay, so the platform is r.. 2016. 5. 15.
[ionic] visual studio code 에서 ionic2 코드를 열었을 때에 experimentalDecorators 관련 에러 visual studio code 에서 ionic2 코드를 열었을 때에 experimentalDecorators 관련 에러가 발생하면 jsconfig.json파일을 추가 한다. [js] Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning. 이와 같은 에러가 발생하면, 프로젝트 루트에 jsconfig.json 파일을 생성한다. 파일의 내용은 아래와 같다. { "compilerOptions": { "emitDecoratorMetadata": true, "experimentalDe.. 2016. 5. 14.