Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49216

Ng-bind into ionic

$
0
0

@rigorio wrote:

im using latest ionic and angular. im a bit of a novice programmer, so please bear with my codes.

export class AppComponent{
	sample1 = 'hello';
	drawmap():void{
		function _fname1():void{
			var var1 = "a";
		}
	}
	other():void{
		function _imtired():void{
		}
	}
}

here’s my dillema. I know i can use variable sample1 in AppComponent into ionic with ngbinding {{ sample1 }}.

but how do you ngbind var1 INSIDE function _fname1 INSIDE drawmap() (at this point im still not so sure as to what drawmap is. not sure if it’s a “normal” function or is it a constructor). I dont know how to use the value of var1 and also alter it’s value in other() or _imtired() inside other(). please, i’m begging for help.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>