Skip to content

Conversation

reganoneill
Copy link

No description provided.

}
}
}
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job using the sprite sheet!

<div class="social-media-icons">
<h3>{{socialIconsCtrl.tester}}</h3>
<ul>
<li><a class="social-icon" ng-repeat="icon in socialIconsCtrl.icons" href="{{icon}}.com"></a></li>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-This works with the ng-repeat. Another option would be to dynamically generate a class name in here from what is stored in your icons array.
-The href attribute will automatically append the attribute to the domain of your page unless you provide it with the new domain. So if your page is running on http://localhost:8000, and you provide a value of twitter.com in the href attribute, clicking on this element will send you to http://localhost:8000/twitter.com. Which is not a path that you have setup on your frontend. To get it to go to https://www.twitter.com you need to provide it with the https://www part. The https:// will tell it that you are providing an external link. So you could change the values in your array. Or if the links you wanted all had the same prefix you could do something like this-->> href='https://www.{{icon}}.com'.

<section class="home">
<create-gallery></create-gallery>

<input class="fuzzy-input" ng-if="homeCtrl.galleries.length >= 5" type="text" placeholder="search for a gallery" ng-model="homeCtrl.gallerySearchTerm">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job here.

@@ -0,0 +1,7 @@
<div class="thumbnail-container">
<h3>{{thumbnailContainerCtrl.gallery.name | uppercase}}</h3>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants