File tree Expand file tree Collapse file tree 13 files changed +25
-63
lines changed
imagekitio-angular4-sample
imagekitio-angular5-sample/src/app
imagekitio-angular6-sample/src/app
imagekitio-angular7-sample/src/app
imagekitio-angular8-sample/src/app
lib/src/imagekitio-angular Expand file tree Collapse file tree 13 files changed +25
-63
lines changed Original file line number Diff line number Diff line change 22
22
"@angular/platform-browser-dynamic" : " ^4.2.4" ,
23
23
"@angular/router" : " ^4.2.4" ,
24
24
"core-js" : " ^2.4.1" ,
25
+ "imagekitio-angular" : " file:../../sdk/dist/imagekitio-angular/imagekitio-angular-0.0.1.tgz" ,
25
26
"rxjs" : " ^5.4.2" ,
26
27
"zone.js" : " ^0.8.14"
27
28
},
Original file line number Diff line number Diff line change 1
1
< div className ="App ">
2
2
< h1 > Hi! This is an ImageKit Angular SDK Demo!</ h1 >
3
3
< p > Let's add an Image</ p >
4
- < ik-image src ={{src}} alt ="This is an alt ">
4
+ < ik-image src =" https://ik.imagekit.io/18ykd9wzp/default-image.jpg " alt ="This is an alt ">
5
5
</ ik-image >
6
6
< p > Let's transform this once</ p >
7
- < ik-image src ={{src}} [transformation] ="transformationOne "> </ ik-image >
7
+ < ik-image src =" https://ik.imagekit.io/18ykd9wzp/default-image.jpg " [transformation] ="transformationOne "> </ ik-image >
8
8
< p > Let's transform this more than once</ p >
9
9
< ik-image path ="{{path}} " [transformation] ="transformationTwo "> </ ik-image >
10
10
< p > LQIP</ p >
11
- < ik-image path ="{{path}} " [lqip] ="lqip "> </ ik-image >
11
+ < ik-image path ="{{path}} " [lqip] ="lqip " alt =" this is alt " > </ ik-image >
12
12
< p > Upload</ p >
13
13
< p > To use this funtionality please remember to setup the server</ p >
14
14
< p > Provide custom upload method</ p >
Original file line number Diff line number Diff line change @@ -9,22 +9,14 @@ export class AppComponent {
9
9
title = 'app' ;
10
10
transformationOne = [ { height : "200" , width : "200" } ] ;
11
11
path = "/default-image.jpg" ;
12
- urlEndpoint = '<YOUR_URL_ENDPOINT>' ;
13
- getSrcFromPath = function getSrcFromPath ( path : string , urlEndpoint :string ) {
14
- if ( path [ 0 ] === "/" )
15
- path = path . split ( "/" ) [ 1 ] ;
16
- return `${ urlEndpoint } /${ path } ` ;
17
- } ;
18
-
19
- src = this . getSrcFromPath ( this . path , this . urlEndpoint ) ;
20
12
21
13
transformationTwo = [
22
14
{ height : "200" , width : "200" } ,
23
15
{
24
16
rotation : "90"
25
17
}
26
18
] ;
27
- lqip = { active : true , quality : 30 } ;
19
+ lqip = { active : true , quality : 1 } ;
28
20
29
21
handleUploadSuccess ( res ) {
30
22
console . log ( 'File upload success with response: ' , res ) ;
Original file line number Diff line number Diff line change 1
1
< div className ="App ">
2
2
< h1 > Hi! This is an ImageKit Angular SDK Demo!</ h1 >
3
3
< p > Let's add an Image</ p >
4
- < ik-image src ={{src}} alt ="This is an alt ">
4
+ < ik-image src =" https://ik.imagekit.io/18ykd9wzp/default-image.jpg " alt ="This is an alt ">
5
5
</ ik-image >
6
6
< p > Let's transform this once</ p >
7
- < ik-image src ={{src}} [transformation] ="transformationOne "> </ ik-image >
7
+ < ik-image src =" https://ik.imagekit.io/18ykd9wzp/default-image.jpg " [transformation] ="transformationOne "> </ ik-image >
8
8
< p > Let's transform this more than once</ p >
9
9
< ik-image path ="{{path}} " [transformation] ="transformationTwo "> </ ik-image >
10
10
< p > LQIP</ p >
11
- < ik-image path ="{{path}} " [lqip] ="lqip "> </ ik-image >
11
+ < ik-image path ="{{path}} " [lqip] ="lqip " alt =" this is alt " > </ ik-image >
12
12
< p > Upload</ p >
13
13
< p > To use this funtionality please remember to setup the server</ p >
14
14
< p > Provide custom upload method</ p >
Original file line number Diff line number Diff line change @@ -9,22 +9,14 @@ export class AppComponent {
9
9
title = 'app' ;
10
10
transformationOne = [ { height : "200" , width : "200" } ] ;
11
11
path = "/default-image.jpg" ;
12
- urlEndpoint = '<YOUR_URL_ENDPOINT>' ;
13
- getSrcFromPath = function getSrcFromPath ( path : string , urlEndpoint :string ) {
14
- if ( path [ 0 ] === "/" )
15
- path = path . split ( "/" ) [ 1 ] ;
16
- return `${ urlEndpoint } /${ path } ` ;
17
- } ;
18
-
19
- src = this . getSrcFromPath ( this . path , this . urlEndpoint ) ;
20
12
21
13
transformationTwo = [
22
14
{ height : "200" , width : "200" } ,
23
15
{
24
16
rotation : "90"
25
17
}
26
18
] ;
27
- lqip = { active : true , quality : 30 } ;
19
+ lqip = { active : true , quality : 1 } ;
28
20
29
21
handleUploadSuccess ( res ) {
30
22
console . log ( 'File upload success with response: ' , res ) ;
Original file line number Diff line number Diff line change 1
1
< div className ="App ">
2
2
< h1 > Hi! This is an ImageKit Angular SDK Demo!</ h1 >
3
3
< p > Let's add an Image</ p >
4
- < ik-image src ={{src}} alt ="This is an alt ">
4
+ < ik-image src =" https://ik.imagekit.io/18ykd9wzp/default-image.jpg " alt ="This is an alt ">
5
5
</ ik-image >
6
6
< p > Let's transform this once</ p >
7
- < ik-image src ={{src}} [transformation] ="transformationOne "> </ ik-image >
7
+ < ik-image src =" https://ik.imagekit.io/18ykd9wzp/default-image.jpg " [transformation] ="transformationOne "> </ ik-image >
8
8
< p > Let's transform this more than once</ p >
9
9
< ik-image path ="{{path}} " [transformation] ="transformationTwo "> </ ik-image >
10
10
< p > LQIP</ p >
11
- < ik-image path ="{{path}} " [lqip] ="lqip "> </ ik-image >
11
+ < ik-image path ="{{path}} " [lqip] ="lqip " alt =" this is alt " > </ ik-image >
12
12
< p > Upload</ p >
13
13
< p > To use this funtionality please remember to setup the server</ p >
14
14
< p > Provide custom upload method</ p >
Original file line number Diff line number Diff line change @@ -9,22 +9,14 @@ export class AppComponent {
9
9
title = 'app' ;
10
10
transformationOne = [ { height : "200" , width : "200" } ] ;
11
11
path = "/default-image.jpg" ;
12
- urlEndpoint = '' ;
13
- getSrcFromPath = function getSrcFromPath ( path : string , urlEndpoint :string ) {
14
- if ( path [ 0 ] === "/" )
15
- path = path . split ( "/" ) [ 1 ] ;
16
- return `${ urlEndpoint } /${ path } ` ;
17
- } ;
18
-
19
- src = this . getSrcFromPath ( this . path , this . urlEndpoint ) ;
20
12
21
13
transformationTwo = [
22
14
{ height : "200" , width : "200" } ,
23
15
{
24
16
rotation : "90"
25
17
}
26
18
] ;
27
- lqip = { active : true , quality : 30 } ;
19
+ lqip = { active : true , quality : 1 } ;
28
20
29
21
handleUploadSuccess ( res ) {
30
22
console . log ( 'File upload success with response: ' , res ) ;
Original file line number Diff line number Diff line change 1
1
< div className ="App ">
2
2
< h1 > Hi! This is an ImageKit Angular SDK Demo!</ h1 >
3
3
< p > Let's add an Image</ p >
4
- < ik-image src ={{src}} alt ="This is an alt ">
4
+ < ik-image src =" https://ik.imagekit.io/18ykd9wzp/default-image.jpg " alt ="This is an alt ">
5
5
</ ik-image >
6
6
< p > Let's transform this once</ p >
7
- < ik-image src ={{src}} [transformation] ="transformationOne "> </ ik-image >
7
+ < ik-image src =" https://ik.imagekit.io/18ykd9wzp/default-image.jpg " [transformation] ="transformationOne "> </ ik-image >
8
8
< p > Let's transform this more than once</ p >
9
9
< ik-image path ="{{path}} " [transformation] ="transformationTwo "> </ ik-image >
10
10
< p > LQIP</ p >
11
- < ik-image path ="{{path}} " [lqip] ="lqip "> </ ik-image >
11
+ < ik-image path ="{{path}} " [lqip] ="lqip " alt =" this is alt " > </ ik-image >
12
12
< p > Upload</ p >
13
13
< p > To use this funtionality please remember to setup the server</ p >
14
14
< p > Provide custom upload method</ p >
Original file line number Diff line number Diff line change @@ -9,22 +9,14 @@ export class AppComponent {
9
9
title = 'app' ;
10
10
transformationOne = [ { height : "200" , width : "200" } ] ;
11
11
path = "/default-image.jpg" ;
12
- urlEndpoint = '' ;
13
- getSrcFromPath = function getSrcFromPath ( path : string , urlEndpoint :string ) {
14
- if ( path [ 0 ] === "/" )
15
- path = path . split ( "/" ) [ 1 ] ;
16
- return `${ urlEndpoint } /${ path } ` ;
17
- } ;
18
-
19
- src = this . getSrcFromPath ( this . path , this . urlEndpoint ) ;
20
12
21
13
transformationTwo = [
22
14
{ height : "200" , width : "200" } ,
23
15
{
24
16
rotation : "90"
25
17
}
26
18
] ;
27
- lqip = { active : true , quality : 30 } ;
19
+ lqip = { active : true , quality : 1 } ;
28
20
29
21
handleUploadSuccess ( res ) {
30
22
console . log ( 'File upload success with response: ' , res ) ;
Original file line number Diff line number Diff line change 1
1
< div className ="App ">
2
2
< h1 > Hi! This is an ImageKit Angular SDK Demo!</ h1 >
3
3
< p > Let's add an Image</ p >
4
- < ik-image src ={{src}} alt ="This is an alt ">
4
+ < ik-image src =" https://ik.imagekit.io/18ykd9wzp/default-image.jpg " alt ="This is an alt ">
5
5
</ ik-image >
6
6
< p > Let's transform this once</ p >
7
- < ik-image src ={{src}} [transformation] ="transformationOne "> </ ik-image >
7
+ < ik-image src =" https://ik.imagekit.io/18ykd9wzp/default-image.jpg " [transformation] ="transformationOne "> </ ik-image >
8
8
< p > Let's transform this more than once</ p >
9
9
< ik-image path ="{{path}} " [transformation] ="transformationTwo "> </ ik-image >
10
10
< p > LQIP</ p >
11
- < ik-image path ="{{path}} " [lqip] ="lqip "> </ ik-image >
11
+ < ik-image path ="{{path}} " [lqip] ="lqip " alt =" this is alt " > </ ik-image >
12
12
< p > Upload</ p >
13
13
< p > To use this funtionality please remember to setup the server</ p >
14
14
< p > Provide custom upload method</ p >
You can’t perform that action at this time.
0 commit comments