html - Angular change css of different directive -


I have a real problem of changing some simple css with corner and CSS.

I have the code:

  & lt; Div class = "progress" & gt; & Lt; Div class = "progress-time progress-time-information" ng-square = "step one" & gt; 1 & lt; / Div & gt; & Lt; Div class = "progress-time progress-time-information" ng-square = "step-two" & gt; 2 & lt; / Div & gt; & Lt; Div class = "progress-time progress-time-information" ng-class = "stuptree" & gt; 3 & lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "well col-lg-12" & gt; & Lt; Applystepone ng-if = "step.one" & gt; & Lt; / Applystepone & gt; & Lt ;! - This is my instruction - & gt; & Lt; Applysteptwo ng-if = "step.two" & gt; & Lt; / Applysteptwo & gt; & Lt; Applysteptree ng-if = "step.tree" & gt; & Lt; / Applicationsteptree & gt; & Lt; / Div & gt;  

Instructions: applystepone if I click on that I button I have a button I ng-class = "stepOne"

Requires CSS of the progress bar: In the command button:

  & lt; Div class = "col-lg-12 text-center" & gt; & Lt; A class = "BTN BTN-Primary" ng-click = "Stacko (); Step1 = 'Valley-Step'" & gt; Next step & lt; / A & gt; & Lt; / Div & gt;  

Instructions:

  app.directive ( 'applystepone', function () {return {restricted: 'E', Templetuttr: 'Partial / Apply -step-one.html '};});  

If I click on the button,

  NG-class = "Stepon"  

If I applicable-step-one.html

  & lt; P ng-class = "stepOne" & gt; Test & lt; / P & gt;  

CSS works, so the button works fine because I think it is in my ng-click instruction and not ng-class = "stepOne" .

100% sure that I did not understand the whole thing, but here it goes.

I think you should consider revising your CSS (which you have not shown, BTW) and a little code:

   

This will trigger the Active class based on the scope of the scope on your progress bar.

After that,

  & lt; P ng-class = "stepOne" & gt; Test & lt; / P & gt;  

You probably should use something more common:

  & lt; P class = "button" & gt; Test & lt; / P & gt;  

and modify CSS to trigger it, for example:

  .well p.button {color: green; }  

And if you just want to modify the orbit of the button, then it's easy:

  & lt; P ng-class = "{'StepOne': step.one, 'stepoutwo': step.two, 'stepThree': step.three}" & gt; Test & lt; / P & gt;  

This progress bar is similar to the division, as I mentioned above.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -