[AngularJS] I have $scope disconnect problem.

2016-07-29 Thread 'Tony Starke' via AngularJS
Hello, members of the Angularjs Technorati. I come to you today as a novice 
trying to make div panels hide and show, using  $scope switching in a 
bolean statement. Here is the code:



 
 
 Untitled 33




START HERE!
Button1   
Button2 
Button3

con1
con2
con3


var app = angular.module('myApp',  []);

app.controller('showDiv', function($scope) {
var getPanel_1 = $scope.view;
if (getPanel_1 === true) {
  $scope.divA = true;
  $scope.divB = false;
  $scope.divC = false;  

}
var getPanel_2 = $scope.view;
if (getPanel_2 === true) {
  $scope.divA = false;
  $scope.divB = true;
  $scope.divC = false;  

}
var getPanel_3 = $scope.view;
if (getPanel_3 === true) {
 $scope.divA = false;
  $scope.divB = false;
  $scope.divC = true;   

}
}
 



Please show me the error in my logic and demonstrate the proper code.

Thanks in advance,
Batoe.
ps: "The road to success is filled with obstacles, but also success!"

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Angular: How do I switch multiple div layers using an interval service loop?

2016-09-17 Thread 'Tony Starke' via AngularJS
*Ok, I would like to switch multiple div layers every 8 seconds, using a 
interval service loop. Each div layer should show every 8 seconds starting 
from div1 and ending with div4, then loops back to div1.Here is my code:*



































*   Untitled 2 This should 
change every 8 seconds!  This is Div 1! This is Div 2! This is Div 3! This is Div 
4!var app = angular.module('bgApp', 
['ngAnimate']);app.controller('switchDiv', function($scope, $interval) {
   $scope.view = $scope.div1[0];   $scope.view = $scope.div2[1];   
$scope.view = $scope.div3[2];   $scope.view = $scope.div4[3];
$interval(function () {  $scope.view++;  }, 
8000);});I know I am close, but the bolean syntax 
still escapes me since I am new to angular.thanks in advance,Batoe*

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Need study material and samples application concept

2016-09-17 Thread 'Tony Starke' via AngularJS
Sure, some good source for learning angular are the following:
www.w3schools.com, Lynda.com., google.com, forums(since it was develoed by 
Google), Also, here is a multitude of YouTube video tutorial.
Happy learning.

Tony

On Friday, September 16, 2016 at 2:36:28 AM UTC-4, kumara...@gmail.com 
wrote:

>
> Greetings All,
>
> This is Kumaran from India. I am workings as web developer (PHP nad mysql 
> related technologies). I am beginner of AngularJS. I am using AngularJS 
> form level of validation and AJAX in my code. I want next level of 
> angularJS use like mobile apps and concepts.
>
> Could you share Best AngularJS books and videos and reference websites.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Angular: How do I switch multiple div layers using an interval service loop?

2016-09-18 Thread 'Tony Starke' via AngularJS
Thanks Sander, I just needed to get a feel for the conditional syntax in 
Angular.

regards,
Tony

On Saturday, September 17, 2016 at 9:14:47 PM UTC-4, Tony Starke wrote:

> *Ok, I would like to switch multiple div layers every 8 seconds, using a 
> interval service loop. Each div layer should show every 8 seconds starting 
> from div1 and ending with div4, then loops back to div1.Here is my code:*
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *  content="text/html" />  /> Untitled 2 src="angular.min.js">  src="angular-animate.js">This should 
> change every 8 seconds!  ng-show="div1" ng-switch-when="view= 1" > This is Div 1! ng-show="div2" ng-switch-when="view= 2" > This is Div 2! ng-show="div3" ng-switch-when="view= 3" > This is Div 3! ng-show="div4" ng-switch-when="view= 0" > This is Div 
> 4!var app = angular.module('bgApp', 
> ['ngAnimate']);app.controller('switchDiv', function($scope, $interval) {
>$scope.view = $scope.div1[0];   $scope.view = $scope.div2[1];   
> $scope.view = $scope.div3[2];   $scope.view = $scope.div4[3];
> $interval(function () {  $scope.view++;  }, 
> 8000);});I know I am close, but the bolean syntax 
> still escapes me since I am new to angular.thanks in advance,Batoe*
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Angular: How do I initiate and show an animation of a div layer?

2016-09-19 Thread 'Tony Starke' via AngularJS
*Hi guys and gals. I need to open a menu div layer when a button is clicked 
and close menu div layer if it is open on mouseover event using angular. 
How do I start with a partially closed div and then get it to open on click 
event? My code seems sound yet it does not work. Here is the code:*




 
 


 collapsible meny 5
  
 

 
 .menu.ng-show {
  animation: my_slide_animation 2s linear;
  }
 @keyframes my_slide_animation {
  from { width:20px; } 
  to { width: 560px; }
}

 .menu {
   float: right;
top:80px;
right: 10px; 
  width:20px;
height:430px;
background-color:white;
border-color:#0AA7E5;
 border-style: solid;
 border-width: 3px;
 border-left-width: 20px;
 
border-radius: 6px 6px;
font: bold 12px Verdana; 
color: red;
overflow: none;
 }


.button {
   
width:260px;
height:30px;
background-color:white;
border-color:#0AA7E5;
 border-style: solid;
 border-width: 3px;
 border-left-width: 10px;
 border-right-width: 10px;
border-radius: 6px 6px;
font: bold 12px Verdana; 
color: red;   
} 
 

  



Contact 
Us






var app = angular.module('myApp', ['ngAnimate']);





Please enlighten me as to the error in my logic.
Thanks in advance,
Batoe

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Angular1: How do I inject a div layer into an animated div layer?

2016-09-30 Thread 'Tony Starke' via AngularJS
*Hi, guys and gals. Ok, I am having trouble attempting to bind a div layer 
inside of a sliding animated menu div after a button click. Ideally, every 
button click should show a different div layer with different data after 
the animated slide. Here is the code:*




*  *


* Collapsible Menu *




























* .wrap {  position:absolute;  top:80px;  left:0px;  
width:100%;   }.menu.ng-hide-remove{animation: open 2s linear;
} @keyframes open {0% { width:20px; } 50% { width: 560px; }
} .menu {float: right;top:80px;right: 10px; 
width:560px;height:400px;background-color:white;
border-color:#0AA7E5;border-style: solid;border-width: 3px;
border-left-width: 20px;*


















*border-radius: 6px 6px;font: bold 12px Verdana; color: 
red;overflow: none;}.shut {float: 
right;top:80px;right: 10px; width:20px;height:400px;
background-color:white;border-color:#0AA7E5;border-style: solid;
border-width: 3px;border-left-width: 20px;*




*border-radius: 6px 6px;font: bold 12px Verdana; color: 
red;overflow: none;}*












*.button { width:260px;height:30px;
background-color:white;border-color:#0AA7E5;border-style: solid;
border-width: 3px;border-left-width: 10px;border-right-width: 
10px;border-radius: 6px 6px;font: bold 12px Verdana; color: 
red;   } *

**



**





















































*Get 
Menu 1Get Menu 2Get Menu 3Get Menu 4Get Menu 5Get Menu 6Get Menu 
7  This is menu 1.  This is menu 
2.  This is menu 3.  This is menu 4.  This is menu 
5.  This is menu 6.  This is menu 7.   var 
app = angular.module('myApp', ['ngAnimate']);  
app.controller('divController', function($scope){$scope.view = 1;
$scope.view = getDiv function(){If ($scope.view = 1) {  $scope.view 
= $scope.div1;  }   If ($scope.view = 2) {  $scope.view = 
$scope.div2;  }If ($scope.view = 3) {  $scope.view = 
$scope.div3;  }   If ($scope.view = 4) {  $scope.view = 
$scope.div4;  }   If ($scope.view = 5) {  $scope.view = 
$scope.div5;  }   If ($scope.view = 6) {  $scope.view = 
$scope.div6;  }   If ($scope.view = 7) {  $scope.view = 
$scope.div7;  }else {  $scope.view = false;   
}}   }); *


**
*Perhaps an ng switch directive or ng hide for each button. Please 
enlighten me as to the proper syntax to achieve this. *

*Thanks in advance, Batoe.* 

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.