AngularJS: Refreshing the parent page after the modal window closed

Experts,

I have a page designed using AngularJS, bootstrap and HTML5. I have a button which opens the dialog to perform an edit operation and when I click save button I would like to close the window and refresh the parent page.

Parent page: Milestone.html/ MilestoneCtrl
Modal: MODALMILESTONEORDERING.html/ MODALMILESTONEORDERINGCTRL


MODALMILESTONEORDERING.html

<div class="modal-header">
    <h3 class="modal-title">Re-order Milestones</h3>
</div>
<div class="modal-body">
    <div ng-hide="Milestone.isEditing" ng-if="mainMenu.HasPermissions('EditMilestone')">
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 ">
                <input class="form-control" id="MilestoneSearch" placeholder="Search Milestones..." ng-model="Milestone.searchText" ng-model-options="{ debounce: 800 }" type="search" />
            </div>
        </div>
        <br />
        <br />
        <system-alert></system-alert>
        <div class="modal-list-section">
            <div class="row">
                <label class="col-xs-6 col-sm-6 col-md-3 col-lg-2">Name</label>
                <label class="col-xs-6 col-sm-6 col-md-3 col-lg-5">Description</label>
                <label class="col-xs-6 col-sm-6 col-md-3 col-lg-5">Order Sequence</label>
            </div>
            <div class="row anim-fade list-row" ng-repeat="milestone in Milestone.milestones | orderBy: 'Order' | filter: Milestone.searchText" ng-class-even="'green-bar'">
                <span class="col-xs-6 col-sm-6 col-md-3 col-lg-2">{{milestone.Name}}</span>
                <span class="col-xs-6 col-sm-6 col-md-3 col-lg-5">{{milestone.Description}}</span>
                <span class="col-xs-6 col-sm-6 col-md-3 col-lg-5">
                    <div class="input-group-sm">
                        <span class="input-group-btn">
                            <button type="button" class="btn btn-agency" ng-click="Milestone.reorder.moveDown($index, milestone)" ng-disabled="$index===0">⇑</button>
                        </span>
                        <input type="text" class="form-control" ng-model="milestone.Order" ng-blur="Milestone.reorder.moveTo($index, milestone)" model-format="digit"
                               ng-change="Milestone.reorder.moveTo($index, milestone)" required />
                        <span class="input-group-btn">
                            <button type="button" class="btn btn-agency" ng-click="Milestone.reorder.moveUp($index, milestone)" ng-disabled="$last===true">⇓</button>
                        </span>
                    </div>
                </span>
            </div>
        </div>
    </div>
</div>
<div class="modal-footer">
    <button class="btn btn-agency btn-sm" type="button" ng-click="Milestone.save()"><i class="fa fa-save"></i>Save</button>
    <button class="btn btn-agency btn-sm" type="button" ng-click="$dismiss(Milestone.deletedMilestones)"><i class="fa fa-ban"></i>Cancel</button>
</div>

Open in new window

.
ModalMilestoneOrderingCtrl.js
MilestoneCtrl.js
MilestoneController.cs
Subbu GAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

contactkarthiCommented:
try

window.top.location.reload(); or parent.location.reload();

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Subbu GAuthor Commented:
It did not fix my problem.
Subbu GAuthor Commented:
I would like to refresh my parent page [Milestone.html] when I close my modal popup [ModalMilestoneOrdering.html] when I click save or close from my modal popup .

working.JPG
@AlexCode

can you help me out?
ModalMilestoneOrderingCtrl.js
MilestoneCtrl.js
ModalMilestoneOrdering.html
Milestone.html
Subbu GAuthor Commented:
@contactkarthi

Is there any other way to do this parent page refresh?
Subbu GAuthor Commented:
Thanks It fixed my problem. Thanks Karthi. I was doing some mistake. good solution for my problem
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Angular

From novice to tech pro — start learning today.