Question: Introduction
============

I'm working on Blogger HTML template.

As you know, Blogger allow writing your template in only one HTML page.

I'm interesting with Angular 2, and i've found out how to write all **classes** in one **app.AllComponent.ts** file.

I'm starting with Angular 2 for a month, and i don't know about Angular 1 before. Reading Getting Start documents from the official page is making me to love Angular 2 from the first time i met him.

My problem
==========

Now aday, i'm founding a solution to write Angular 2 (TypeScript) in **script** tags on html page, to use Angular 2 in my blogger template to create an application?

But i'm stucking at how to config the **System** and implement **bootstrap** function to load my script, because i do not have an **/app** folder in my blogger template.

Is it possible to do that please?

Thank you so much to help me.

Answer: 
> 
> UIImageView is not a control, you can't add a target for control events to it 
> 
> 
> 

```
    UITapGestureRecognizer *singleTap =  [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(singleTapping:)];
    [imageview setUserInteractionEnabled:YES];
    [singleTap setNumberOfTapsRequired:1];
    [imageview addGestureRecognizer:singleTap];

```

Then call your gesture method like this :

```
-(void)singleTapping:(UIGestureRecognizer *)recognizer
{
    NSLog(@"pressed");
}

```
Create a Button with a image as following:

```
UIButton *button  = [UIButton buttonWithType:UIButtonTypeCustom];

[button setImage:[UIImage imageNamed:@"sampleImage"] forState:UIControlStateNormal];

[self.view addSubview:button];

```

Hope it helps..