
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
angular2-isotope
Advanced tools
angular2-isotope is in development and not ready for production use. Feel free to install and try it out, but depend on it at your own risk.
npm install angular2-isotope --save
If you're using SystemJS add angular2-isotope and masonry-layout to your configuration:
packages: {
"angular2-isotope": { "defaultExtension": "js", "main": "index" }
},
map: {
"angular2-isotope": "node_modules/angular2-isotope",
"isotope-layout": "node_modules/isotope-layout/dist/isotope.pkgd.js"
}
Import IsotopeModule into your app's modules:
import { IsotopeModule } from 'angular2-isotope';
@NgModule({
imports: [
IsotopeModule
]
})
@Component({
selector: 'my-component',
template: `
<isotope>
<isotope-brick class="brick" *ngFor="let brick of bricks">{{brick.title}}</isotope-brick>
</isotope>
`,
styles: [`
.brick { width: 200px; }
`]
})
class MyComponent {
bricks = [
{title: 'Brick 1'},
{title: 'Brick 2'},
{title: 'Brick 3'},
{title: 'Brick 4'},
{title: 'Brick 5'},
{title: 'Brick 6'}
]
}
Read about Masonry options here: http://masonry.desandro.com/options.html
The options-attribute takes an object with the following properties:
Inline object:
<isotope [options]="{ transitionDuration: '0.8s' }"></isotope>
From parent component:
import { IsotopeOptions } from 'angular2-isotope';
public myOptions: IsotopeOptions = {
transitionDuration: '0.8s'
};
<isotope [options]="myOptions"></isotope>
NOTE: Will throw error if global
imagesLoadednot available.
Delay adding brick until all images in brick are loaded.
To activate imagesLoaded set useImagesLoaded to true.
<isotope [useImagesLoaded]="true"></isotope>
index.html:
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/4.1.1/imagesloaded.pkgd.min.js"></script>
EventEmitter<any[]>Triggered after a layout and all positioning transitions have completed.
EventEmitter<any[]>Triggered after an item element has been removed.
<isotope (layoutComplete)="doStuff($event)" (removeComplete)="doOtherStuff($event)"></isotope>
FAQs
Angular2 component for https://github.com/metafizzy/isotope
We found that angular2-isotope demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.