## How to set a default state with Angular ui-router

I am using states to change data in a table. URLs are of the form /zone/:zoneCode. However, when just /zone

## How to reload the current Angular 2 Component

How can I reload the same component again in Angular 2? Here is my code below: import { Component, OnInit,

## Using ng-repeat and limitTo to limit the number of visible items displayed

I’m trying to limit my result sets to a fixed number. I can use limitTo with ng-repeat, but this limits

## Unit testing AngularJS factories that have dependencies

When unit testing an Angular factory (with Karma + Jasmine), how do I inject a stub dependency into the factory

## How to add click event on mat-row in angular material table

I added this but when inspecting element using Chrome DevTools, the click function doesn’t show! Here’s my code: <mat-table [dataSource]=”dataSource1″