back soft

مطالب مرتبط با «variable in AngularJS» در back soft | نویسنده: استخدام کار

JSfiddle not evaluating AngularJs $scope variables

امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...

ادامه مطلب

How do I set returned Firebase data to a $scope variable in AngularJS?

Vote count: 0 What I am trying to do: I want to output all of the books in the book node on my home page. What I need is an array of objects that contain all of the books in the book node so that I can loop through them using the ng-repeat directive in AngularJs. In the code below, when I console log the data, I get an object of objects, which caot be used with ng-repeat. Another issue that I am having is when I try to output the $scope.allBooks variable on to the page, nothing appears. Can anyone help me with this? // Main Controller firebase.database().ref('books').on('value', function(snapshot) { var data = snapshot.val(); $scope.allBooks = data; console.log(data); }); // Book Node in Fir...

ادامه مطلب

Accessing the Angular 2.0 ViewContainerRef for a popup created at runtime by a non-Angular library

Vote count: 0 Using Angular 2.0 (final), how can I obtain the ViewContainerRef of a DOM element created by an exteal, non-Angular library, after app/Component bootstrapping/rendering has occurred? I had previously used DynamicComponentLoader.loadNextToLocation(), but that was deprecated as of RC5. The Problem (TL;DR) I'm attempting to use Angular 2.0 to insert a dynamically-created Component inside of a popup window that is generated at runtime by an exteal, non-Angular library (specifically, an InfoWindow/Popup for an ESRI ArcGIS JavaScript API 3.x Map). Since the popup window is generated entirely by the exteal library after app bootstrap and the parent Component's ngAfterViewInit()/ngAfte...

ادامه مطلب